Questions tagged [canvas-sketch]

6 questions
0
votes
0 answers

How to fill a letter ('A', 'B', 'C', etc) with a glyph selected in a panel?

I am using canvas to draw a letter "A" and the character is supposed to be filled with the glyph that user chooses from the panel. It can be a '*', '-', or '.' Right now I have '*' as default but it doesn't update when the input changes. This is how…
0
votes
0 answers

Draw ASCII art version of image on canvas using canvas-sketch (Javascript)

The idea was for the code to draw an ASCII art version of an image and my initial code was drawing the glyphs on the background and not the profile of the person. profile of Pastor Gospel I played around a bit and found out that the profile wasn't…
0
votes
0 answers

Moving JS generated CANVAS inside DIV (canvas-sketch)

i'm experimenting a bit with creative coding and creating visuals with javascript. And put them on a website. It's using canvas-sketch (https://github.com/mattdesl/canvas-sketch), comparable to Processing or p5.js. The problem i'm facing: It…
Jelle
  • 29
  • 1
  • 8
0
votes
1 answer

How to find local server address for existing canvas-sketch file

How can I get the local server address from the terminal for an existing canvas-sketch file. -- open just opens the file in the text editor. Example from: https://github.com/mattdesl/canvas-sketch/blob/master/docs/installation.md This is the address…
0
votes
0 answers

How do I slow an animation down in canvas-sketch?

In line 6, you'll see that I have animate as true. I tried adding a duration and lowering the fps, but this doesn't impact the movement speed. I've come to the conclusion that the duration and fps don't impact the animation speed as it doesn't…
peyo
  • 351
  • 4
  • 15
0
votes
0 answers

Canvas - Animating a rotation of an Arc(canvas-sketch Javascript)

I'm having difficulty animating the arc that I draw in a way that I'd want (basically the arc just circling around the centre). What's happening instead is that where I have the first startAngle then the line is always there and the circle is only…
Joe Sovcik
  • 378
  • 1
  • 2
  • 11