Randomly or procedurally generate a map/image?

My goal is to randomly or procedurally generate a heat-map image for a game concept, but I can’t figure out the best way to accomplish it.

What I’m trying to create is a full-screen image consisting of a black background and randomly-placed red dot with a cooling color gradient radiating off of that spot, like you’d see on a weather map or one of those body-heat cameras.

Gradient = red to orange to yellow to green to blue to black

Any thoughts or suggestions?

Thanks-- [import]uid: 19765 topic_id: 5432 reply_id: 305432[/import]

I am new to the coding stuff so don’t take my word, but it depends on how detailed you want this map to be. If you want it to be super detailed it might be difficult, but if you could deal with a pixelated look, then you might be able to do this. I don’t know if there is a way to automatically create rectangles without writing out each one, but if there were some way you could easily create a whole bunch of 2x2 pixel squares, you could make it so that just a couple of the pixels are red and then the adjacent pixels area mimic the colors of the red pixel minus some so it is a little less red, sort of like a wave. Then again this would be extremely complicated and I have no idea how you would actually do this so… looking back, what I just said makes no sense

but I’m too lazy to delete it… :slight_smile: [import]uid: 7116 topic_id: 5432 reply_id: 19496[/import]

That makes sense — I’m new to coding too, but that approach seems logical.

Thanks for the suggestion! [import]uid: 19765 topic_id: 5432 reply_id: 19669[/import]