Changing individual pixels from white to black (or vice vers

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Josh1910
Posts: 19
Joined: Tue Jan 20, 2015 7:30 am

Changing individual pixels from white to black (or vice vers

Post by Josh1910 » Mon Sep 14, 2015 6:01 am

Hi all,

I'm trying to set up a box that will randomly change a certain number of pixels from the default color to a new color (probably from white to black). However, I've just learned that Visual Basic can do this with a single line of code. I'm still struggling to find out if LiveCode has a similar ability (to isolate and change the color of single pixels). Any help would be appreciated.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Changing individual pixels from white to black (or vice

Post by jmburnod » Mon Sep 14, 2015 9:48 am

Hi Josh,

Bernd have written a script to do that.
Please have a look here and write back if necessary
http://forums.livecode.com/viewtopic.ph ... lue#p60272
Best regards
Jean-Marc
https://alternatic.ch

Post Reply