Draw on the HTML canvas without code

viraj_bijpuria_0eb3428f61

UnionForever

Posted on October 27, 2024

Draw on the HTML canvas without code

I was recently creating a web game. Now, while creating graphics for this game (characters, map etc), I saw that under the HTML canvas API, drawing even a single line took 4 lines of code-

ctx.beginPath();
ctx.moveTo(100, 150);
ctx.lineTo(100, 200);
ctx.stroke();
Enter fullscreen mode Exit fullscreen mode

I knew that things like mapping out coordinates and rewriting repeated methods can easily be done by a no-code tool. This led to the creation of Canvascript. It's a open source tool whose purpose is to speed up the time it takes to create web game graphics.

Using it is simple, draw on the canvas, then click on the generate button to get the code to render the design on the actual HTML canvas. You can use the tool here. We also have a Discord server btw.

What do you think about this? any feedback or suggestions?

💖 💪 🙅 🚩
viraj_bijpuria_0eb3428f61
UnionForever

Posted on October 27, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Draw on the HTML canvas without code
javascript Draw on the HTML canvas without code

October 27, 2024