Share your repls and programming experiences

← Back to all posts
👉 Pixel randomiser Ⓧ Ⓨ Ⓩ
RolandJLevy (1083)

Links 🔗

Instructions ⚙️

  • Press Play and Pause to toggle the animation
  • Click on the letters to see letter shapes appear
  • Move the slider to change speed
  • Click on each pixel to see its hexadecimal value

How it works 💡

A pixel continuously changes colour and position randomly in the grid.

Each new position is chosen randomly: either one position up, down, left or right. This process repeats itself to create an organic animation.

The colour starts with hexadecimal value of #000000 (black) and with each move the colour increases by 100, making the next colour #000064 and so on.

The finishing hexadecimal colour is #ffffff (white) which means there are a total of 16,777,215 possible colours!

This explains how to convert #ffffff to a decimal value

Comments
hotnewtop
RolandJLevy (1083)

@FlaminHotValdez yes, beautiful indeed! Thanks for sharing :)

DSAEvan (21)

While I wait for it to create the "s":

RolandJLevy (1083)

@DSAEvan ok, I thought that's what you meant. It just takes time for all the pixels to change colour. You can sleep things up by moving the slider all the way to the right. Like this...

MadMath123 (341)

This is really cool! Sometimes, pixels don't get colored.

RolandJLevy (1083)

@MadMath123 oh, can you send me a screen grab of it?

Whippingdot (652)

rick astley decapitated and very happy singing 'NEVER GONNA GIVE YOU UP'

Whippingdot (652)

love this thingy BTW. It AWESOME! @RolandJLevy

firefish (947)

@Whippingdot this is what i mean by my angry notifs

Whippingdot (652)

oh ya you don't use windows right don't start a debate on which is better please @firefish

Whippingdot (652)

How do I know what exactly... @RolandJLevy

RolandJLevy (1083)

@Whippingdot how do you know I don't use Windows?

Whippingdot (652)

umm i wasn't talking to you lul. I was talking to @firefish @RolandJLevy

OldWizard209 (1499)

Thank you for curing my depression of school ...

RolandJLevy (1083)

@OldWizard209 you're welcome! I hope you're OK :)