Slide 11
Slide 11 text
at a certain point, the video stops while the audio continues! if anyone has this
problem pls answer and state the quality and condition of your computer so we can
figure out the cause of this problem.
You said it uses a library called processing- i'm trying to use this course as part of a
web curriculum, with html, css and js- and wondering if it's just going in the wrong
direction.
The way they're doing that effect is clever, but probably
inefficient. They're actually repainting the entire screen on
every call of the 'draw' function. But instead of repainting
it a full black, they're setting the alpha(transparency) as
well. So basically you start off with a bright green line and
then the new 'draw' loop colors over that line with a black
color that is mostly transparent. This fades the line just
slightly and new bright green line is then draw right next to
it. On the next 'draw' loop, the black is drawn again so the
first green line is now faded even more, the 2nd green line
is faded a little and then a new green line is drawn. This
just happens over and over and eventually the green lines
are faded out completely. Hopefully that makes sense, it's
kind of confusing how they're doing it.
(margin)
(border)
(padding)