Posts by Taruandé Biota • 35 points
5 posts
-
0
votes1
answer38
viewsA: Replace/toggle slider1.value() by slider2.value() within a variable in the code and within the canvas position
I found an answer: put a Boolean condition next to the button, like true/false, and when the button is triggered, toggle between these two values. var slider1; var slider2; var valuechange; function…
-
0
votes1
answer38
viewsQ: Replace/toggle slider1.value() by slider2.value() within a variable in the code and within the canvas position
I would like to replace/switch the slider that gives value to a variable within an object. The slider2 must replace and occupy within the code and also on the canvas the place that previously…
-
0
votes2
answers141
viewsA: setTimeout - the image not fixed on the screen (P5.js)
From what Heathcliff said, I found this solution: the setTimeout trigger the true, and within a condition if == true, draw the Ellipse var ball = false; function setup() { createCanvas(windowWidth,…
-
0
votes2
answers141
viewsQ: setTimeout - the image not fixed on the screen (P5.js)
Programming in javascript/P5.js I’m trying to use the setTimeout function, but the image, when triggered, is flashing on the screen, not fixed. The idea is that the ellipse appears after a certain…
-
3
votes1
answer78
viewsQ: How to apply opacity to a DOM element - createImage(); - through a javascript editor?
I’m using P5.js - a javascript library - to capture images from a news API. I would like these images to be superimposed, but with opacity, so that the images merge. I’m not being able to apply…