Posts by Diogo Miranda • 105 points
4 posts
-
2
votes1
answer43
viewsA: Randomize images as textures in 3D solids
The problem is that the way pessoa had been declared, the class was overwriting its value to each instance. It is already working correctly, just move the declaration of pessoa inside class: class…
-
3
votes1
answer43
viewsQ: Randomize images as textures in 3D solids
Good, I have 30 solids and I have a different image for each of them. I created one array for the images, and if you choose to use the same image at all (as I left here in the code, use the bandeira…
-
0
votes1
answer269
viewsQ: How do I reset to setInterval() of a function?
Hello, I’m having trouble reset to setInterval() in 2 functions, they have to be re-used in the affected Ids Here is the JS code: //Fuction Fade out function fadeOut(elem, speed) { if…
javascriptasked Diogo Miranda 105 -
5
votes1
answer71
viewsQ: Increment opacity of an element
My fadeOut is ok, but the fadein isn’t working... function fadeIn(elem, speed) { if(!elem.style.opacity) { elem.style.opacity = 0; } InInterval(function(){ elem.style.opacity += 0.03; }, speed…
javascriptasked Diogo Miranda 105