LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

A little "fractal" I discovered…

Posted 07-20-2011 at 02:45 PM by MrCode
Updated 07-25-2011 at 03:56 AM by MrCode (tinypic dumped one of my images; replaced :D)

…while I was still learning the Windows API.

I was experimenting with (very slow) procedural image generation with SetPixel(), when I did something like this for each pixel in the image:

Code:
SetPixel(x,y,RGB((x ^ y) * (cr.right - cr.left) * 0.025,
                 (x ^ y) * (cr.right - cr.left) * 0.025,
                 (x & y) * (cr.right - cr.left) * 0.025));
…or something like that (I don't remember all the arguments...
Member
Views 3051 Comments 2 MrCode is offline
Old

My first (real) experimentation with SDL

Posted 04-20-2011 at 10:55 AM by MrCode
Updated 04-20-2011 at 02:00 PM by MrCode (stdlib.h include was unnecessary)

It's been a while since I've done any serious programming (if little demo/learning programs can be considered serious ), but I finally got around to doing some little SDL apps.

The code here is basically for learning purposes; it's not like I'm keeping hold of it with an iron grip…IOW, go ahead and use parts of it (or the whole of it) to learn from/use in your own programs/whatever. It's not like there's much here anyway.

The one whose source I'll...
Member
Views 2372 Comments 1 MrCode is offline

  



All times are GMT -5. The time now is 12:03 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration