Posts by Anderson Trugilio • 49 points
6 posts
-
0
votes1
answer45
viewsQ: How to duplicate a triangle randomly within the canvas?
I’m trying to duplicate a triangle randomly within the canvas when you press some key, like space bar or other. But I don’t know how to duplicate if I have to use some kind of constructor/array.…
-
1
votes1
answer29
viewsQ: Mount a Strobe Light inside the JS canvas
I have a task to develop for college but I’m having some problems. First let me try to explain what to do: I need to simulate a strobe light based on a few colors in an HTML selector. The user…
-
0
votes0
answers304
viewsQ: How to rotate and move the canvas with the keydown?
Talk guys! I’m a beginner in JS and HTML. There’s a lot I understand the reasoning but I get in the way of coding. I’ll try to explain what I’m trying to do. I am drawing a triangle (called Jack),…
-
2
votes1
answer136
viewsQ: canvas - Fill a semi smile with the color red
Good evening guys, here’s the thing, I need to fill the smile of Snowman in red. But I’m not succeeding, I don’t know if it’s because I’m having some mistake in the code or if I’m drawing the wrong…
-
0
votes3
answers666
viewsQ: While loop - number counter minus 0
good night! I need to apply a loop for the user to always enter a number (via prompt), when typing 0 should appear an Alert stating the amount of numbers typed, not counting the zero. I don’t…
-
0
votes1
answer101
viewsQ: Javascript Loop - 1 + input
Good night, you guys! I’m locked in a Javascript loop, it’s as follows: User type any positive number, example 15. Need to provide on the console the number 1 up to 15. The problem is that I do not…