RiTa fading question
in
Contributed Library Questions
•
1 year ago
Hi! I'm working on an art project for my electronic writing class, and I need to generate text from a grammar, and then have that text fade in and out.
For some reason, it isn't doing that.
Here's the code:
- import processing.opengl.*;
- import rita.*;
- RiText rt;
- RiGrammar rg;
- RiText[] rts;
- String lines;
- int count = 0;
- void setup () {
- size(1050, 800);
- background(160);
- smooth();
- frameRate(4);
- RiText.setDefaultFont("ACaslonPro-Regular-35.vlw");
- }
- void draw () {
- rg = new RiGrammar(this, "blue room.g");
- rt = new RiText(this, rg.expand());
- float r = random(-200, 800);
- float s = random(0, 800);
- rt.setPosition(r, s);
- rt.fadeIn(2);
- rt.fadeOut(2);
- }
It would be much appreciated!
Thanks,
Clara
1