Jump to content
IGNORED

Coloured Pixel Generator


Recommended Posts

Hello, all. I've just been tinkering with a small Flash game that allowed you to randomly generate a 32 x 32 grid of coloured pixels. You can choose the amount of colours it uses, from anywhere between 1 and 10, or you can choose "all colours" and it will choose from any colour with a hex triplet.

 

It may take a few seconds to generate the grid, and choosing between 7 and 10 colours may slow down your computer. I'd recommend 4 or 5 colours, but "all colours" also looks nice and shouldn't take too long. Once you have your grid, click anywhere to go back to the menu.

 

Here are a few screenshots of what it can do:

 

pinkmolt.png

 

mountain.png

 

carwashstop.png

 

Have fun! I'm considering uploading this to Newgrounds, but I'm not so sure. I've had bad experiences with it before.

random pixels.swf 10.9 kB · 21 downloads

Link to comment
https://forum.watmm.com/topic/54823-coloured-pixel-generator/
Share on other sites

do you have any way of implementing rules about what goes next to what? (ie 'if a pixel is blue, it's neighbours can be of colours x,y, or z. if a pixel is green... etc)

  On 5/7/2013 at 11:06 PM, ambermonk said:

I know IDM can be extreme

  On 6/3/2017 at 11:50 PM, ladalaika said:

this sounds like an airplane landing on a minefield

Link to comment
https://forum.watmm.com/topic/54823-coloured-pixel-generator/#findComment-1283172
Share on other sites

No, I don't think that would be necessary. It's completely random, based on hundreds of uses of Math.Random().

Link to comment
https://forum.watmm.com/topic/54823-coloured-pixel-generator/#findComment-1283174
Share on other sites

whilst not necessary, you'd be halfway to creating an interesting cellular automata there as opposed to a big pile of boring random :emotawesomepm9:

  On 5/7/2013 at 11:06 PM, ambermonk said:

I know IDM can be extreme

  On 6/3/2017 at 11:50 PM, ladalaika said:

this sounds like an airplane landing on a minefield

Link to comment
https://forum.watmm.com/topic/54823-coloured-pixel-generator/#findComment-1283187
Share on other sites

actually; it makes for nice photoshop filters...

 

enceycrash.png

  On 5/7/2013 at 11:06 PM, ambermonk said:

I know IDM can be extreme

  On 6/3/2017 at 11:50 PM, ladalaika said:

this sounds like an airplane landing on a minefield

Link to comment
https://forum.watmm.com/topic/54823-coloured-pixel-generator/#findComment-1283208
Share on other sites

  On 3/30/2010 at 3:45 AM, Dragon said:

Yeah, but I did it first.

 

actually, some dude programmed this first in 'how to create a 2-dimensional array the size of the screen, and fill it <character-sized blocks of> OR <with> random numbers, probably using BASIC and nested FOR-NEXT loops', from the manual of whatever computer it was way back when we first moved from mono to more than two colours.

Edited by kaini
  On 5/7/2013 at 11:06 PM, ambermonk said:

I know IDM can be extreme

  On 6/3/2017 at 11:50 PM, ladalaika said:

this sounds like an airplane landing on a minefield

Link to comment
https://forum.watmm.com/topic/54823-coloured-pixel-generator/#findComment-1283377
Share on other sites

i haven't ... err... opened it, but how can this take A FEW SECONDS???

 

you using BitmapData? creating separate DisplayObjects? how on earth can it take seconds? :D

Link to comment
https://forum.watmm.com/topic/54823-coloured-pixel-generator/#findComment-1283528
Share on other sites

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   1 Member

×
×