Skip to main content

Questions tagged [canvas]

Canvas is a drawing element introduced to web development with HTML5.

10 votes
3 answers
2k views

I implemented this Rubik's Cube game in Python, using Canvas and Context2d for user interaction. This was mainly an exercise in &...
QuadmasterXLII's user avatar
6 votes
5 answers
408 views

Gomoku ★★★ (Tic Tac Toe) There are many Gomoku (5 in a row) game projects on the Internet. The scripts of these projects are freely available. Having analyzed them, I created my own game code based on ...
Василий Иванович's user avatar
3 votes
1 answer
106 views

I have this pie chart. It encodes data points in three dimensions, which are encoded via sector radius, sector angle, color intensity of the sector. How it looks like? (See here.) Code ...
coderodde's user avatar
  • 32.3k
2 votes
1 answer
130 views

(This post is the continuation of A JavaScript plugin for rendering radial pie charts.) (See the continuation of this post.) Now, you can mark up the radial pie charts via XML: ...
coderodde's user avatar
  • 32.3k
3 votes
1 answer
119 views

(See also An extended JavaScript plugin for rendering radial pie charts.) I have this JavaScript plugin: rodde-radial-pie-chart.js: ...
coderodde's user avatar
  • 32.3k
0 votes
1 answer
125 views

Usage of the program is in Facebook. Intro In this JavaFX program, a user is presented with a white canvas with a black circle at the center of the canvas. Then, the user has 10 seconds to record a ...
coderodde's user avatar
  • 32.3k
4 votes
1 answer
308 views

Edit 2: For anyone interested, you can play the game at buggysnake.com Edit 1: I have typed up the code for making the body of the snake move. It's not perfect and there are small problems I need to ...
Seeker's user avatar
  • 143
0 votes
1 answer
128 views

I am trying to remake Super Mario Bros. in JavaScript and I am trying to figure out if there is a more efficient/shorter way to create and store the level data. I have created 1-1 and here's what the ...
Jake Miahn's user avatar
8 votes
2 answers
977 views

We have worked an idea out that seems to have a wide usecase and there seems to be no examples for it on the web for python tkinter. Having unlimited space to draw can be crucial and can be done wrong ...
Thingamabobs's user avatar
4 votes
2 answers
214 views

This post is less of a question and more of a hope for people to see my code which I know is far from great and give me some direction or simple tips on improving the quality of it. Normal Stud: ...
Jack's user avatar
  • 41
0 votes
0 answers
72 views

I've wrapped everything inside a gamecontroller, so that everything is private, was this a good idea? that was my first time using oop and module pattern. also the code is in a good shape, or must be ...
leo___'s user avatar
  • 9
1 vote
1 answer
365 views

I have the following function that draws a canvas pattern. It works so slow when canvas size bigger then 512x512. ...
Nika's user avatar
  • 19
1 vote
2 answers
2k views

Animate circle using Javascript and HTML5 Canvas. The circle will be drawn at the center of the canvas. The initial radius will be 0 and will keep on increasing till 100 and then decrease till 0 and ...
user avatar
2 votes
1 answer
202 views

There is a function that draws triangles on the canvas area in each lines: ...
Jony's user avatar
  • 123
2 votes
1 answer
147 views

Background I'm interested in implementing a small script to display multiple independent instances of a Canvas-based control on one page. The ultimate intention is to add many similar controls to the ...
DaveL17's user avatar
  • 123

15 30 50 per page
1
2 3 4 5
13