PImage smilie; float angle; float omega; NUMBER_INPUT numberInput; PFont font; int fontConstant = 30; void setup(){ size(600,550); smilie = loadImage("smilie.png"); imageMode(CENTER); angle=1; numberInput = new NUMBER_INPUT(0, 510, 100, 50,"dFieta/dFrame (Degress)", 2, color(255), color(200), color (255,0,0)); font = loadFont("CourierNewPSMT-37.vlw"); textFont(font,37); omega=0; } void draw(){ background(255); pushMatrix(); translate(250,250); rotate(angle); image(smilie,0,0,500,500); angle+=omega; if (angle>=TWO_PI){ angle-=TWO_PI; } popMatrix(); numberInput.display(); if (numberInput.acceptKeyboard==false){ omega = radians(numberInput.return_value()); } }