Skip to content

Instantly share code, notes, and snippets.

@dackdel
Last active December 14, 2015 06:59
Show Gist options
  • Save dackdel/5047245 to your computer and use it in GitHub Desktop.
Save dackdel/5047245 to your computer and use it in GitHub Desktop.
apWidget for Map
import apwidgets.*;
APWidgetContainer widgetContainer;
APToggleButton captureButton;
APButton resetButton;
void setup(){
widgetContainer = new APWidgetContainer(this);
captureButton = new APToggleButton(10, 10, "Capture");
resetButton = new APButton(80, 80, "Reset");
widgetContainer.addWidget(captureButton);
widgetContainer.addWidget(resetButton);
}
void draw(){
background(0);
}
void onClickWidget(APWidget widget){
if(widget == captureButton){
}
else if(widget == resetButton){
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment