© Joshua Davis 

This Site Was Proudly Created With Wix.com

HRotate 002

HYPE, HShape (svg), HRotate (target, speed)

import hype.*;
import hype.extended.behavior.HRotate;

void setup() {
 size(640,640);
 H.init(this).background(#242424);

 HShape svg1 = new HShape("cog_sm.svg");
 H.add(svg1).enableStyle(false).fill(#FF3300).anchorAt(H.CENTER).loc(223,413);
 new HRotate(svg1, -0.5);

 HShape svg2 = new HShape("cog_lg.svg");
 H.add(svg2).enableStyle(false).fill(#FF6600).anchorAt(H.CENTER).loc(690,260);
 new HRotate(svg2, 0.3333 );
}

void draw() {
 H.drawStage();
}