Как делать цвета? | SoloLearn: Learn to code for FREE!

0

Как делать цвета?

2/12/2020 8:14:01 PM

Тёмная Гусенечка

5 Answers

New Answer

0

<script> var canvas = document.getElementById("myCanvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle = "#FF0000"; ctx.fillRect(0,0,150,75); </script> We can set fillStyle. "#FF0000" is the red color.

0

Read more about Canvas here https://www.sololearn.com/learn/HTML/2201/

0

See also this tutorial https://www.w3schools.com/graphics/canvas_drawing.asp

0

0