123456789101112131415161718192021222324252627282930 |
- function Screensaver(){
- this.enter = function()
- {
- console.log("ENTER SCREESAVER")
- textX = 10;
- textY = 0;
- }
- this.setup= function() {
- cnv=createCanvas(_w, _h);
- cnv.mouseClicked(toRiver);
- console.log("ScSv STARTED ")
- }
- this.draw = function() {
- let ourText='Click Over Me';
- background("teal");
- fill("black");
- textSize(50 + cos(frameCount * 0.025) * 25);
- textLeading(sin(frameCount * 0.01)*50);
- text(ourText, 40, height/2, 300, 350);
- }
-
- function toRiver(){
- console.log("Mouse pressed in ScSv")
- _mgr.showScene( River );
- }
- }
|