Share your repls and programming experiences

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

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

Voters
JonahSmith3
JWZ6
proryan
MikeJMS8910
SudhanshuMishra
HenryZelonka1
IntellectualGuy
mkhoi
Th3Coder
Dunce
Comments
hotnewtop
sarveshcoder

RolandJLevy
sarveshcoder
RolandJLevy

@sarveshcoder thanks!

FlaminHotValdez

B e a u t i f u l

RolandJLevy

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

BananaJellyfish

This is really cool!

RolandJLevy

@BananaJellyfish thanks! :)

Brendan23
RolandJLevy

@Brendan23 thanks! ;)

JWZ6

nice!

RolandJLevy

@JWZ6 thanks!

JWZ6

@RolandJLevy no prob

SudhanshuMishra

Yay

RolandJLevy
DSAEvan

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

RolandJLevy

@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...

DSAEvan

@RolandJLevy nice to know

RolandJLevy

@DSAEvan thanks 👍

MadMath123

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

RolandJLevy

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

zplusfour

kewl

RolandJLevy

@zplusfour thanks!

Whippingdot

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

FlaminHotValdez

@Whippingdot meanie rickroller

RolandJLevy

@Whippingdot Haha! nice :)

Whippingdot

INVASION OF THE REDS

@RolandJLevy

RolandJLevy

@Whippingdot nice! 🌟

Whippingdot

love this thingy BTW. It AWESOME! @RolandJLevy

RolandJLevy

ah thank you my friend! @Whippingdot

firefish

@Whippingdot this is what i mean by my angry notifs

Whippingdot

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

firefish

@Whippingdot debate time

RolandJLevy

@Whippingdot yes! How do you know?

Whippingdot

How do I know what exactly... @RolandJLevy

RolandJLevy

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

Whippingdot

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

RolandJLevy
BobTheTomatoPie

cool

RolandJLevy

@BobTheTomatoPie thanks! :)

RolandJLevy

@BobTheTomatoPie thanks! :)

OldWizard209

Thank you for curing my depression of school ...

RolandJLevy

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

JacobMcPherson1

wow

RolandJLevy

@JacobMcPherson1 thanks! :)