0
Как делать цвета?
5 Antworten
+ 1
<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.
+ 1
Read more about Canvas here
https://www.sololearn.com/learn/HTML/2201/
+ 1
See also this tutorial
https://www.w3schools.com/graphics/canvas_drawing.asp
0
Спасибо
0
Only using JS