r/CodingHelp • u/JalebiBabyKebob • Feb 26 '22
[Java] Does anyone know how to recreate these three images using Javascript code?
4
u/Ikem32 Feb 27 '22
You draw them with Javascript into a canvas element. On the first image are squares in three different sizes and three different colors, on the second image are lines in different colors and angles, and on the third image, I have no clue how I would recreate these shapes.
3
u/hacb92 Feb 27 '22
Arrows, each pointing a direction with a background. You can split them up to 4 squares. Out of which 2 are identical. Look closely from the first line and you can see it changes once its done with 2 sequences. Up down right left up down right left --- boom colour change -- boom repeat.
1
1



15
u/Nightcorex_ Feb 26 '22
Java ≠ JavaScript
Also what do you want to do? Simply copy them or generate such pictures in the first place?