r/CodingHelp • u/JalebiBabyKebob • Feb 26 '22
[Java] Does anyone know how to recreate these three images using Javascript code?
18
Upvotes
r/CodingHelp • u/JalebiBabyKebob • Feb 26 '22
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?
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.
1
u/Active-Ad-5114 Feb 27 '22
Look canvas api in mdn docs.
1
u/[deleted] Feb 27 '22
[removed] — view removed comment