I am trying to make a program/app and while it works perfectly fine on desktop/laptop it wont work on Android

I am trying to make a program/app and while it works perfectly fine on desktop/laptop it wont work on android.

When I try to compile it for android in debug mode it gives a few lines of code that are causing problems like something that creates another Papplet and some surface. something and ExitActual() and Dispose() but even when I comment out what it has a problem with it still crashes and gives me this error:

Build folder: C:\Users\Jerbo\AppData\Local\Temp\android4043563785076806557sketch
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.1.0) was tested up to compileSdk = 32

This warning can be suppressed by adding
android.suppressUnsupportedCompileSdk=33
to this project’s gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33
Observed package id ‘build-tools;30.0.3’ in inconsistent location ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\build-tools\30.0.3-2’ (Expected ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\build-tools\30.0.3’)
Already observed package id ‘build-tools;30.0.3’ in ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\build-tools\30.0.3’. Skipping duplicate at ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\build-tools\30.0.3-2’
Observed package id ‘platforms;android-33-ext5’ in inconsistent location ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\platforms\android-33’ (Expected ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\platforms\android-33-ext5’)
Observed package id ‘platforms;android-33’ in inconsistent location ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\platforms\android-33-2’ (Expected ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\platforms\android-33’)
Observed package id ‘platforms;android-33’ in inconsistent location ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\platforms\android-33-3’ (Expected ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\platforms\android-33’)
Already observed package id ‘platforms;android-33’ in ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\platforms\android-33-2’. Skipping duplicate at ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\platforms\android-33-3’
Observed package id ‘platforms;android-33’ in inconsistent location ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\platforms\android-33-4’ (Expected ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\platforms\android-33’)
Already observed package id ‘platforms;android-33’ in ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\platforms\android-33-2’. Skipping duplicate at ‘C:\Users\Jerbo\OneDrive\Documents\Processing\android\sdk\platforms\android-33-4’

Task :app:preBuild UP-TO-DATE
Task :app:preDebugBuild UP-TO-DATE
Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
Task :app:compileDebugAidl NO-SOURCE
Task :app:compileDebugRenderscript NO-SOURCE
Task :app:generateDebugBuildConfig
Task :app:javaPreCompileDebug
Task :app:checkDebugAarMetadata
Task :app:generateDebugResValues
Task :app:generateDebugResources
Task :app:createDebugCompatibleScreenManifests
Task :app:extractDeepLinksDebug
Task :app:processDebugMainManifest
Task :app:processDebugManifest
Task :app:mergeDebugShaders
Task :app:compileDebugShaders NO-SOURCE
Task :app:generateDebugAssets UP-TO-DATE
Task :app:mergeDebugAssets
Task :app:processDebugJavaRes NO-SOURCE
Task :app:checkDebugDuplicateClasses
Task :app:mergeDebugJniLibFolders
Task :app:mergeDebugNativeLibs NO-SOURCE
Task :app:stripDebugDebugSymbols NO-SOURCE
Task :app:validateSigningDebug
Task :app:writeDebugAppMetadata
Task :app:writeDebugSigningConfigVersions
Task :app:processDebugManifestForPackage
Task :app:compressDebugAssets
Task :app:mergeDebugResources
Task :app:processDebugResources

Task :app:compileDebugJavaWithJavac
Annotation processing got disabled, since it requires a 1.6 compliant JVM

Task :app:desugarDebugFileDependencies
Task :app:dexBuilderDebug
Task :app:mergeDebugJavaResource
Task :app:mergeExtDexDebug
Task :app:mergeDexDebug
Task :app:packageDebug
Task :app:createDebugApkListingFileRedirect
Task :app:assembleDebug

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See Command-Line Interface

BUILD SUCCESSFUL in 5s
27 actionable tasks: 27 executed
FATAL EXCEPTION: main
Process: processing.test.wof_oc_maker, PID: 6906
java.lang.NullPointerException: Attempt to invoke interface method ‘android.content.res.AssetManager processing.core.PSurface.getAssets()’ on a null object reference
at processing.core.PApplet.createInputRaw(PApplet.java:5006)
at processing.core.PApplet.createInput(PApplet.java:4863)
at processing.core.PApplet.loadImage(PApplet.java:4003)
at processing.test.wof_oc_maker.WoF_OC_Maker.settings(WoF_OC_Maker.java:159)
at processing.core.PApplet.handleSettings(PApplet.java:832)
at processing.core.PApplet.initSurface(PApplet.java:511)
at processing.android.PFragment.onCreateView(PFragment.java:149)
at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2963)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:518)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3138)
at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3072)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:502)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:251)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1543)
at android.app.Activity.performStart(Activity.java:8330)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3670)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Copied to the clipboard. Use shift-click to search the web instead.
Copied to the clipboard. Use shift-click to search the web instead.

Heres The Code(in file form cause char limit):

FloodFill1 myFloodFill;
import controlP5.*;
ControlP5 cp5;
ControlP5 MyController;
int SliderValue=1;int Value=0;
float Brush = 0;
HScrollbar hs1, hs2;    Two scrollbarsint p = 1;
int KL = 0;
int k =1;
color v = 255;
int Drag = 0;
int GG=0;
int save=0;
PVector leftPoint;
PVector rightPoint;
PVector topPoint;
PVector bottomPoint;
color y = color(191, 188, 19);
color b = color(0, 255, 255);
color r = color(255, 0, 0);
color br = color(156, 105, 3);
color g = color(3, 255, 3);
color bl = color(3, 16, 255);
color n = color(0, 0, 0);
color s = color(251, 255, 0);
color o = color(255, 200, 0);
color l = color(5, 125, 19);
PImage img1;
PImage img2;
PImage img3;
PImage img4;
PImage img5;
PImage img6;
int[] XXXX;
int[] YYYY;
String path = System.getProperty("user.home");
PImage img7;
PImage img8;
PImage img9;
PImage img10;
PImage img11;
PImage img12;
PImage img13;
PImage Paint;
PImage S1;
PImage B1;
PImage B2;
PImage P1;
PImage P2;
PImage S2;
PImage Clip;
PImage S3;
PImage S4;
PImage S5;
PImage S6;
PImage I1;
PImage I2;
PImage I3;
PImage I4;
PImage Sk1;
PImage Sk2;
PImage Sk3;
PImage M1;
PImage M2;
PImage M3;
PImage R1;
PImage R2;
PImage R3;
PImage R4;
PImage Se1;
PImage Se2;
PImage Se3;
PImage Se4;
PImage N1;
PImage N2;
PImage N3;
PImage N4;
PImage Si1;
PImage Si2;
PImage Si3;
PImage Si4;
PImage H1;
int set =0;
int leftX =0;
int leftY =0;
int rightX =0;
int rightY =0;
int topX =0;
int topY =0;
int bottomX =0;
int bottomY =0;
int running=0;
boolean saved;

PImage H2;
PImage H3;
PImage H4;
PImage L1;
PImage L2;
PImage L3;
PImage L4;
PImage Sk4;
PImage M4;
PImage Icon;
PImage Pick;
int x = 0;
int a = 0;
int c = 0;
int d = 0;
int e = 0;
boolean ctrlPressed = false;
boolean sPressed = false;
int f = 0;
int m = 0;
int h = 0;
int i = 0;
int j = 0;
int p =0;
color pointColor;
int XX;
int YY;
int tribe = 0;
int initialtribe=tribe;
int Delta;
PImage icon;
void setup(){
 surface.setTitle("WoF OC Maker");
frameRate(120);
   surface.setIcon(icon);



}


public void settings() {
 size(1050,800);
 icon = loadImage("iconx.png");
img1 = loadImage("Sand.png");
img2 = loadImage("Ice.png");
img3 = loadImage("Sky.png");
img4 = loadImage("Mud.png");
img5 = loadImage("Rain.png");
img6 = loadImage("Sea.png");
img7 = loadImage("Night.png");
img8 = loadImage("Silk.png");
img9 = loadImage("Hive.png");
img10 = loadImage("Leaf.png");
img11 = loadImage("House.png");
img12 = loadImage("Color.png");
img13 = loadImage("Icon.png");
S1 = loadImage("Sand1.png");
S2 = loadImage("Sand2.png");
S3 = loadImage("Sand3.png");
S4 = loadImage("Sand4.png");
S5 = loadImage("Sand5.png");
S6 = loadImage("Sand6.png");
I1 = loadImage("Ice1.png");
I2 = loadImage("Ice2.png");
I3 = loadImage("Ice3.png");
I4 = loadImage("Ice4.png");
Sk1 = loadImage("Sky1.png");
Sk2 = loadImage("Sky2.png");
Sk3 = loadImage("Sky3.png");
M1 = loadImage("Mud1.png");
M2 = loadImage("Mud2.png");
M3 = loadImage("Mud3.png");
R1 = loadImage("Rain1.png");
R2 = loadImage("Rain2.png");
R3 = loadImage("Rain3.png");
Se1 = loadImage("Sea1.png");
Se2 = loadImage("Sea2.png");
Se3 = loadImage("Sea3.png");
Se4 = loadImage("Sea4.png");
N1 = loadImage("Night1.png");
N2 = loadImage("Night2.png");
N3 = loadImage("Night3.png");
N4 = loadImage("Night4.png");
Si1 = loadImage("Silk1.png");
Si2 = loadImage("Silk2.png");
Si3 = loadImage("Silk3.png");
Si4 = loadImage("Silk4.png");
H1 = loadImage("Hive1.png");
H2 = loadImage("Hive2.png");
H3 = loadImage("Hive3.png");
H4 = loadImage("Hive4.png");
L1 = loadImage("Leaf1.png");
L2 = loadImage("Leaf2.png");
L3 = loadImage("Leaf3.png");
L4 = loadImage("Leaf4.png");
Sk4 = loadImage("Sky4.png");
R4 = loadImage("Rain4.png");
M4 = loadImage("Mud4.png");
Paint = loadImage("paint.png");
Clip = loadImage("Clip.png");
Icon = loadImage("cli1.png");
Pick = loadImage("Color.png");
P1 = loadImage("Paint1.png");
P2 = loadImage("Paint2.png");
B1 = loadImage("Bucket.png");
B2 = loadImage("Bucket1.png");
 hs1 = new HScrollbar(0, height/1.8, width/10, 16, 16);  
 saved=false;


}
void draw(){
if(tribe>0){
if(tribe==1){fill(y);}
if(tribe==2){fill(b);}
if(tribe==3){fill(r);}
if(tribe==4){fill(br);}
if(tribe==5){fill(g);}
if(tribe==6){fill(bl);}
if(tribe==7){fill(n);}
if(tribe==8){fill(s);}
if(tribe==9){fill(o);}
if(tribe==10){fill(l);}
rect(0,405,140,20);



}



  if(tribe==0){
    background(255);
  textSize(40);
  fill(0);
  text("Welcome to WoF OC Maker!",250,100);
   textSize(30);
  text("Click any of the Dragon Tribes to go to the menu for that tribe,",50,200);
 text("then use arrow keys to find the base that you like.",150,250);
  text("Once you have selected your base click the color picker icon(top left),",0,300);
  text("then select a color and choose color fill or brush,",120,350);
  text("once you are done just press CTRL-S to save,",150,400);
  text("the file is saved as Dragon[number].png!",180,450);
  text("Note:Press DELETE to clear screen",240,500);
  image(Clip, 100, 500, width/8, height/4);
  text("WoF",140,600);
 text("OC",145,630);
 text("Names",120,660);
 if(mousePressed&&mouseX>100&&mouseX<230&&mouseY>500&&mouseY<650){tribe=-1;}
}

if(tribe==-1){background(255);
fill(0);
textSize(18);
text("Sandwings:",0,30);
text("Icewings:",103,30);
text("Skywings:",195,30);
text("Mudwings:",290,30);
text("Rainwings:",390,30);
text("Seawings:",490,30);
text("Nightwings:",585,30);
text("Silkwings:",695,30);
text("Hivewings:",790,30);
text("Leafwings:",885,30);
textSize(15);

text("Quicksand,",0,60);
text("Drift,",0,80);
text("Strickle,",0,100);
text("Sandwort,",0,120);
text("Sandy,",0,140);
text("Cay,",0,160);
text("Dobbin,",0,180);
text("Alluvia,",0,200);
text("Wege,",0,220);
text("Swash,",0,240);
text("Dusty,",0,260);
text("Venom,",0,280);
text("Bighorn,",0,300);
text("Coyote,",0,320);
text("Hetstroke,",0,340);
text("Komodo,",0,360);
text("Dobbin,",0,380);
text("Serpent,",0,400);
text("Camel,",0,420);
text("Horus,",0,440);
text("Ra,",0,460);
text("Sobek,",0,480);
text("Sphinx,",0,500);
text("Pharoah,",0,520);
text("Hathor,",0,540);
text("Cleopatra,",0,560);
text("Dusk,",0,580);
text("Sienna,",0,600);
text("Sakhmet,",0,620);
text("Sandworm,",0,640);

text("Glare,",103,60);
text("Hailstone,",103,80);
text("Quake,",103,100);
text("Pickel,",103,120);
text("Pykrete,",103,140);
text("Glimer,",103,160);
text("Frost,",103,180);
text("Australis,",103,200);
text("Spike,",103,220);
text("Aquilon,",103,240);
text("Boris,",103,260);
text("Cryo,",103,280);
text("Brinicle,",103,300);
text("Auk,",103,320);
text("Blizzard,",103,340);
text("Carbou,",103,360);
text("Crystalline,",103,380);
text("Floe,",103,400);
text("Juniper,",103,420);
text("Radiance,",103,440);
text("Seal,",103,460);
text("Snow,",103,480);
text("Siberia,",103,500);
text("Adele,",103,520);
text("Algid,",103,540);
text("Frigid,",103,560);
text("Bleak,",103,580);

text("Azure,",195,60);
text("Horizon,",195,80);
text("Afterglow,",195,100);
text("Atlas,",195,120);
text("Atria,",195,140);
text("Strata,",195,160);
text("Zenith,",195,180);
text("Ether,",195,200);
text("Aurora,",195,220);
text("Swash,",195,240);
text("Aaron,",195,260);
text("Akai,",195,280);
text("Arsonos,",195,300);
text("Ash,",195,320);
text("Aztec,",195,340);
text("Caelum,",195,360);
text("Crackle,",195,380);
text("Fang,",195,400);
text("Flameburst,",195,420);
text("Geni,",195,440);
text("Hazard,",195,460);
text("Ignition,",195,480);
text("Lucifer,",195,500);
text("Merlin,",195,520);
text("Moa,",195,540);
text("Pecker,",195,560);
text("Surt,",195,580);
text("Thor,",195,600);
text("Tornado,",195,620);
text("Vortex,",195,640);

text("Sludge,",290,60);
text("Slab,",290,80);
text("Slog,",290,100);
text("Shale,",290,120);
text("Daub,",290,140);
text("Worm,",290,160);
text("Slush,",290,180);
text("Swamp,",290,200);
text("Morass,",290,220);
text("Glade,",290,240);
text("Cottonwood,",290,260);
text("Bobcat,",290,280);
text("Gator,",290,300);
text("Copperhead,",290,320);
text("Florida,",290,340);
text("Geyser,",290,360);
text("Grouse,",290,380);
text("Basswood,",290,400);
text("Goose,",290,420);
text("Frog,",290,440);
text("Hippo,",290,460);
text("Amber,",290,480);
text("Aspen,",290,500);
text("Fawn,",290,520);
text("Hazel,",290,540);
text("Briar,",290,560);
text("Doe,",290,580);
text("Delta,",290,600);
text("Butterfly,",290,620);
text("Fern,",290,640);
text("Cherry,",290,660);
text("Fir,",290,680);
text("Horsetail,",290,700);

text("Halo,",390,60);
text("Day,",390,80);
text("Sol,",390,100);
text("Helio,",390,120);
text("Adobe,",390,140);
text("Sunspot,",390,160);
text("Sunbird,",390,180);
text("Sunrise,",390,200);
text("Sunshine,",390,220);
text("Sunburst,",390,240);
text("Halo,",390,260);
text("Day,",390,280);
text("Sol,",390,300);
text("Helio,",390,320);
text("Adobe,",390,340);
text("Sunspot,",390,360);
text("Sunbird,",390,380);
text("Sunrise,",390,400);
text("Sunshine,",390,420);
text("Sunburst,",390,440);
text("Aster,",390,460);
text("Amaryllis,",390,480);
text("Baobab,",390,500);
text("Caracal,",390,520);
text("Dodo,",390,540);
text("Eggplant,",390,560);
text("Hibiscus,",390,580);
text("Iro,",390,600);
text("Kakapo,",390,620);
text("Kapok,",390,640);

text("Canvas,",490,60);
text("Mast,",490,80);
text("Shrimp,",490,100);
text("Fish,",490,120);
text("Crab,",490,140);
text("Mullet,",490,160);
text("Dean,",490,180);
text("Doris,",490,200);
text("Prawn,",490,220);
text("Sail,",490,240);
text("Aquamarine,",490,260);
text("Abyss,",490,280);
text("Abzu,",490,300);
text("Anvil,",490,320);
text("Ascidians,",490,340);
text("Barnacle,",490,360);
text("Bottlenose,",490,380);
text("Boutu,",490,400);
text("Bluegill,",490,420);
text("Brinicle,",490,440);
text("Bass,",490,460);
text("Chromis,",490,480);
text("Cobalt,",490,500);
text("Coot,",490,520);
text("Cascade,",490,540);
text("Dolphin,",490,560);
text("Deluge,",490,580);
text("Abura,",490,600);
text("Aethia,",490,620);
text("Doris,",490,640);
text("Anuket,",490,660);
text("Aquaria,",490,680);
text("Arame,",490,700);

text("Hawk,",585,60);
text("Wake,",585,80);
text("Moonflower,",585,100);
text("Vampire,",585,120);
text("Moonstruck,",585,140);
text("Lunar,",585,160);
text("Wax,",585,180);
text("Terminator,",585,200);
text("Orbit,",585,220);
text("Apollo,",585,240);
text("Abyssdrifter,",585,260);
text("Armageddon,",585,280);
text("Blackdrift,",585,300);
text("Backstabber,",585,320);
text("Battlescar,",585,340);
text("Indomitable,",585,360);
text("Blindfate,",585,380);
text("Blade,",585,400);
text("Bloodshed,",585,420);
text("Bloodstrike,",585,440);
text("Brainwasher,",585,460);
text("Clevermind,",585,480);
text("Cosmos,",585,500);
text("Cloudseeker,",585,520);
text("Cursetalker,",585,540);
text("Darkhunter,",585,560);
text("Daybreaker,",585,580);
text("Dreamkiller,",585,600);
text("Fatechanger,",585,620);
text("Fiercesight",585,640);

text("Atlas,",695,60);
text("Tiger,",695,80);
text("Comet,",695,100);
text("Sphinx,",695,120);
text("Oleander,",695,140);
text("Galium,",695,160);
text("Maple,",695,180);
text("Cecropia,",695,200);
text("Aurota,",695,220);
text("Emperor,",695,240);
text("Attacus,",695,260);
text("Acmon,",695,280);
text("Chalcedon,",695,300);
text("Hawkmoth,",695,320);
text("Lulworth,",695,340);
text("Muslin,",695,360);
text("Oakleaf,",695,380);
text("Polydamus,",695,400);
text("Yamfly,",695,420);
text("Monarch,",695,440);
text("Alexandra,",695,460);
text("Agrippa,",695,480);
text("Angel,",695,500);
text("Acadia,",695,520);
text("Crown,",695,540);
text("Dragontail,",695,560);
text("Dryad,",695,580);
text("Edith,",695,600);
text("Emerald,",695,620);
text("Indra,",695,640);

text("Aphid,",790,60);
text("Cicada,",790,80);
text("Glowworm,",790,100);
text("Hornet,",790,120);
text("Weevil,",790,140);
text("Mantis,",790,160);
text("Beetle,",790,180);
text("Deborah,",790,200);
text("Firefly,",790,220);
text("Dubia,",790,240);
text("Gnat,",790,260);
text("Ant,",790,280);
text("Mason,",790,300);
text("Harvester,",790,320);
text("Sawfly,",790,340);
text("Sawyer,",790,360);
text("Tick,",790,380);
text("Thrip,",790,400);
text("Termite,",790,420);
text("Stickbug,",790,440);
text("Anasa,",790,460);
text("Centipede,",790,480);
text("Calico,",790,500);
text("Click,",790,520);
text("Damselfly,",790,540);
text("Earwig,",790,560);
text("Formica,",790,580);
text("Honeybee,",790,600);
text("Junix,",790,620);
text("Deborah,",790,640);
text("Junebug,",790,660);
text("Lacewing,",790,680);
text("Milkweed,",790,700);

text("Frond,",885,60);
text("Lobe,",885,80);
text("Axil,",885,100);
text("Costa,",885,120);
text("Bud,",885,140);
text("Stalk,",885,160);
text("Gem,",885,180);
text("Venus,",885,200);
text("Nightshade,",885,220);
text("Snakeroot,",885,240);
text("Rosary,",885,260);
text("Spruce,",885,280);
text("Arrowhead,",885,300);
text("Ash,",885,320);
text("Aspen,",885,340);
text("Alder,",885,360);
text("Dragontrap,",885,380);
text("Dwale,",885,400);
text("Ebony,",885,420);
text("Elm,",885,440);
text("Eucalyptus,",885,460);
text("Fungus,",885,480);
text("Marigold,",885,500);
text("Monkshood,",885,520);
text("Oleander,",885,540);
text("Oak,",885,560);
text("Pine,",885,580);
text("Pitcher,",885,600);
text("Ricin,",885,620);
text("Acai,",885,640);
text("Bristlecone,",885,660);
text("Heliamphora,",885,680);
text("Jimsonweed,",885,700);



}  
 
 
 
 
 if(saved==false){
if(mousePressed&&mouseX>5&&mouseX<100&&mouseY>700){
tribe = 1;
background(255);
Delta=1;
}
if(mousePressed&&mouseX>100&&mouseX<210&&mouseY>700){
tribe = 2;
background(255);
Delta=1;
}  
if(mousePressed&&mouseX>210&&mouseX<315&&mouseY>700){
tribe = 3;
background(255);
Delta=1;
}  
if(mousePressed&&mouseX>315&&mouseX<415&&mouseY>700){
tribe = 4;
background(255);
Delta=1;
}  
if(mousePressed&&mouseX>415&&mouseX<525&&mouseY>700){
tribe = 5;
background(255);
Delta=1;
}  
if(mousePressed&&mouseX>525&&mouseX<630&&mouseY>700){
tribe = 6;
background(255);
Delta=1;
}  
if(mousePressed&&mouseX>630&&mouseX<735&&mouseY>700){
tribe = 7;
background(255);
Delta=1;
}  
if(mousePressed&&mouseX>735&&mouseX<840&&mouseY>700){
tribe = 8;
background(255);
Delta=1;
}  
if(mousePressed&&mouseX>840&&mouseX<945&&mouseY>700){
tribe = 9;
background(255);
Delta=1;
}  
if(mousePressed&&mouseX>945&&mouseY>700){
tribe = 10;
background(255);
Delta=1;
}
 }

 
 
  if(tribe!=0){
   
  }
 
 
 
if(saved==false){  
 
   fill(255);
image(img11, 950, 0, width/10.3, height/8);
if(mousePressed&&mouseX >950&&mouseY<100){
tribe = 0;}  

}  
 
 
 
 
 
 if(saved==false){
image(img1, 5, 700, width/10.3, height/8);
image(img2, 100, 695, width/8.9, height/6.6);
image(img3, 210, 700, width/9.9, height/7.6);
image(img4, 315, 700, width/9.9, height/7.6);
image(img5, 415, 695, width/8.9, height/6.6);
image(img6, 525, 700, width/9.9, height/7.6);
image(img7, 630, 700, width/9.9, height/7.6);
image(img8, 735, 700, width/9.9, height/7.6);
image(img9, 840, 700, width/9.9, height/7.6);
image(img10, 945, 700, width/9.9, height/7.6);
 }

 
if(tribe>0){
if(saved==false){
 
image(Pick, 5, 0, width/8, height/8);




  fill(0);
  if(tribe==7){fill(255);}
 
  Brush=hs1.getPos();
  Value=round(Brush);
  textSize(15);
text("Brush Size: "+Value+"px",0,420);

 hs1.update();
  hs1.display();

if(set==0){
image(P1, 5, 600, width/10.3, height/8);}
if(set==1){
image(P2, 5, 600, width/10.3, height/8);}

if(GG==0){
image(B1, 5, 500, width/10.3, height/8);}
if(GG==1){
image(B2, 5, 500, width/10.3, height/8);}

 
if(set>1){set=0;}
if(GG>1){GG=0;}
if(tribe!=initialtribe){set=0;
Delta=1;
GG=0;



initialtribe=tribe;}
}
}




if(mousePressed&&tribe>0&&mouseX>20&&mouseX<100&&mouseY>20&&mouseY<100&&running==0&&saved==false){
String[] args = {"Color_Picker"};
   Color_Picker sa = new Color_Picker();
   PApplet.runSketch(args, sa);
delay(50);
running=1;
}
if (saved==true) {
if(tribe==1){fill(y);}
if(tribe==2){fill(b);}
if(tribe==3){fill(r);}
if(tribe==4){fill(br);}
if(tribe==5){fill(g);}
if(tribe==6){fill(bl);}
if(tribe==7){fill(n);}
if(tribe==8){fill(s);}
if(tribe==9){fill(o);}
if(tribe==10){fill(l);}  
rect(0,700,1050,100);  
rect(950,0,100,100);
rect(0,400,110,300);  
rect(5,0,110,100);
   
 
 Drag++;
 saveFrame(path+"/Downloads/"+"Dragon"+Drag+".png");

  saved=false;
    delay(50);
 }
if(mousePressed){
if(Delta==1){
 if(tribe==1){
 background(y);
 if (keyPressed==true){
 if(keyCode == RIGHT){
 x++;
 delay(100);}
 if(keyCode == LEFT){
 x--;delay(100);} }
 if(x>5){x=0;}
 if(x<0){x=5;}
 if(x==0){image(S1, 100, 0, width/1.1, height/1.2);}
 if(x==1){image(S2, 100, 0, width/1.1, height/1.2);}
 if(x==2){image(S3, 100, 0, width/1.1, height/1.2);}
 if(x==3){image(S4, 100, 0, width/1.1, height/1.2);}
 if(x==4){image(S5, 100, 0, width/1.1, height/1.2);}
 if(x==5){image(S6, 100, 0, width/1.1, height/1.2);}
}    
 
  if(tribe==2){background(b);
if (keyPressed==true){
 if(keyCode == RIGHT){
 a++;
 delay(100);}
 if(keyCode == LEFT){
 a--;delay(100);} }
 if(a>3){a=0;}
 if(a<0){a=3;}
 if(a==0){image(I1, 100, 40, width/1.1, height/1.2);}
 if(a==1){image(I2, 100, 40, width/1.1, height/1.2);}
 if(a==2){image(I3, 100, 0, width/1.1, height/1.2);}
 if(a==3){image(I4, 100, 0, width/1.1, height/1.2);}


}
   if(tribe==3){background(r);
 if (keyPressed==true){
 if(keyCode == RIGHT){
 c++;
 delay(100);}
 if(keyCode == LEFT){
 c--;delay(100);} }
 if(c>3){c=0;}
 if(c<0){c=3;}
 if(c==0){image(Sk1, 100, 40, width/1.1, height/1.2);}
 if(c==1){image(Sk2, 100, 40, width/1.1, height/1.2);}
 if(c==2){image(Sk3, 40, 40, width/1.1, height/1.2);}
 if(c==3){image(Sk4, 40, 40, width/1.1, height/1.2);}

 
 }
    if(tribe==4){background(br);
  if (keyPressed==true){
 if(keyCode == RIGHT){
 d++;
 delay(100);}
 if(keyCode == LEFT){
 d--;delay(100);} }
 if(d>3){d=0;}
 if(d<0){d=3;}
 if(d==0){image(M1, 100, 40, width/1.1, height/1.2);}
 if(d==1){image(M2, 100, 40, width/1.1, height/1.2);}
 if(d==2){image(M3, 80, 40, width/1.2, height/1.3);}
 if(d==3){image(M4, 80, 40, width/1.2, height/1.3);}

 }
     if(tribe==5){background(g);
   if (keyPressed==true){
 if(keyCode == RIGHT){
 e++;
 delay(100);}
 if(keyCode == LEFT){
 e--;delay(100);} }
 if(e>3){e=0;}
 if(e<0){e=3;}
 if(e==0){image(R1, 100, 40, width/1.1, height/1.2);}
 if(e==1){image(R2, 100, 40, width/1.1, height/1.2);}
 if(e==2){image(R3, 100, 40, width/1.1, height/1.2);}
 if(e==3){image(R4, 80, 40, width/1.2, height/1.3);}

 }
      if(tribe==6){background(bl);
    if (keyPressed==true){
 if(keyCode == RIGHT){
 f++;
 delay(100);}
 if(keyCode == LEFT){
 f--;delay(100);} }
 if(f>3){f=0;}
 if(f<0){f=3;}
 if(f==0){image(Se1, 100, 40, width/1.1, height/1.2);}
 if(f==1){image(Se2, 100, 40, width/1.1, height/1.2);}
 if(f==2){image(Se3, 80, 40, width/1.2, height/1.3);}
if(f==3){image(Se4, 80, 40, width/1.2, height/1.3);}

 }
       if(tribe==9){background(o);
     if (keyPressed==true){
 if(keyCode == RIGHT){
 i++;
 delay(100);}
 if(keyCode == LEFT){
 i--;delay(100);} }
 if(i>3){i=0;}
 if(i<0){i=3;}
 if(i==0){image(H1, 100, 40, width/1.1, height/1.2);}
 if(i==1){image(H2, 100, 40, width/1.1, height/1.2);}
 if(i==2){image(H3, 80, 40, width/1.2, height/1.3);}
 if(i==3){image(H4, 80, 40, width/1.2, height/1.3);}

}
        if(tribe==10){ background(l);
      if (keyPressed==true){
 if(keyCode == RIGHT){
 j++;
 delay(100);}
 if(keyCode == LEFT){
 j--;delay(100);} }
 if(j>3){j=0;}
 if(j<0){j=3;}
 if(j==0){image(L1, 100, 40, width/1.1, height/1.2);}
 if(j==1){image(L2, 100, 40, width/1.1, height/1.2);}
 if(j==2){image(L3, 80, 40, width/1.2, height/1.3);}
 if(j==3){image(L4, 80, 40, width/1.2, height/1.3);}

 }
         if(tribe==7){background(n);
       if (keyPressed==true){
 if(keyCode == RIGHT){
 m++;
 delay(100);}
 if(keyCode == LEFT){
 m--;delay(100);} }
 if(m>3){m=0;}
 if(m<0){m=3;}
 if(m==0){image(N1, 100, 40, width/1.1, height/1.2);}
 if(m==1){image(N2, 100, 40, width/1.1, height/1.2);}
 if(m==2){image(N3, 80, 40, width/1.2, height/1.3);}
 if(m==3){image(N4, 80, 40, width/1.2, height/1.3);}

}
          if(tribe==8){ background(s);
        if (keyPressed==true){
 if(keyCode == RIGHT){
 h++;
 delay(100);}
 if(keyCode == LEFT){
 h--;delay(100);} }
 if(h>3){h=0;}
 if(h<0){h=3;}
 if(h==0){image(Si1, 100, 40, width/1.1, height/1.2);}
 if(h==1){image(Si2, 100, 40, width/1.1, height/1.2);}
 if(h==2){image(Si3, 80, 40, width/1.2, height/1.3);}
  if(h==3){image(Si4, 80, 40, width/1.2, height/1.3);}

}

if(saved==false){  
 
   fill(255);
image(img11, 950, 0, width/10.3, height/8);
if(mousePressed&&mouseX >950&&mouseY<100){
tribe = 0;}  

}  


if(saved==false){
image(img1, 5, 700, width/10.3, height/8);
image(img2, 100, 695, width/8.9, height/6.6);
image(img3, 210, 700, width/9.9, height/7.6);
image(img4, 315, 700, width/9.9, height/7.6);
image(img5, 415, 695, width/8.9, height/6.6);
image(img6, 525, 700, width/9.9, height/7.6);
image(img7, 630, 700, width/9.9, height/7.6);
image(img8, 735, 700, width/9.9, height/7.6);
image(img9, 840, 700, width/9.9, height/7.6);
image(img10, 945, 700, width/9.9, height/7.6);
 }
 
 
 
if(tribe>0){
if(saved==false){
 
image(Pick, 5, 0, width/8, height/8);




  fill(0);
  if(tribe==7){fill(255);}
 
  Brush=hs1.getPos();
  Value=round(Brush);
  textSize(15);
text("Brush Size: "+Value+"px",0,420);

 hs1.update();
  hs1.display();

if(set==0){
image(P1, 5, 600, width/10.3, height/8);}
if(set==1){
image(P2, 5, 600, width/10.3, height/8);}

if(GG==0){
image(B1, 5, 500, width/10.3, height/8);}
if(GG==1){
image(B2, 5, 500, width/10.3, height/8);}

 
if(set>1){set=0;}
if(GG>1){GG=0;}
if(tribe!=initialtribe){set=0;
Delta=1;
GG=0;



initialtribe=tribe;}
}
}


}}
}


void mouseReleased(){
if(Delta==1){
 if(tribe==1){
 background(y);
 if (keyPressed==true){
 if(keyCode == RIGHT){
 x++;
 delay(100);}
 if(keyCode == LEFT){
 x--;delay(100);} }
 if(x>5){x=0;}
 if(x<0){x=5;}
 if(x==0){image(S1, 100, 0, width/1.1, height/1.2);}
 if(x==1){image(S2, 100, 0, width/1.1, height/1.2);}
 if(x==2){image(S3, 100, 0, width/1.1, height/1.2);}
 if(x==3){image(S4, 100, 0, width/1.1, height/1.2);}
 if(x==4){image(S5, 100, 0, width/1.1, height/1.2);}
 if(x==5){image(S6, 100, 0, width/1.1, height/1.2);}
}    
 
  if(tribe==2){background(b);
if (keyPressed==true){
 if(keyCode == RIGHT){
 a++;
 delay(100);}
 if(keyCode == LEFT){
 a--;delay(100);} }
 if(a>3){a=0;}
 if(a<0){a=3;}
 if(a==0){image(I1, 100, 40, width/1.1, height/1.2);}
 if(a==1){image(I2, 100, 40, width/1.1, height/1.2);}
 if(a==2){image(I3, 100, 0, width/1.1, height/1.2);}
 if(a==3){image(I4, 100, 0, width/1.1, height/1.2);}


}
   if(tribe==3){background(r);
 if (keyPressed==true){
 if(keyCode == RIGHT){
 c++;
 delay(100);}
 if(keyCode == LEFT){
 c--;delay(100);} }
 if(c>3){c=0;}
 if(c<0){c=3;}
 if(c==0){image(Sk1, 100, 40, width/1.1, height/1.2);}
 if(c==1){image(Sk2, 100, 40, width/1.1, height/1.2);}
 if(c==2){image(Sk3, 40, 40, width/1.1, height/1.2);}
 if(c==3){image(Sk4, 40, 40, width/1.1, height/1.2);}

 
 }
    if(tribe==4){background(br);
  if (keyPressed==true){
 if(keyCode == RIGHT){
 d++;
 delay(100);}
 if(keyCode == LEFT){
 d--;delay(100);} }
 if(d>3){d=0;}
 if(d<0){d=3;}
 if(d==0){image(M1, 100, 40, width/1.1, height/1.2);}
 if(d==1){image(M2, 100, 40, width/1.1, height/1.2);}
 if(d==2){image(M3, 80, 40, width/1.2, height/1.3);}
 if(d==3){image(M4, 80, 40, width/1.2, height/1.3);}

 }
     if(tribe==5){background(g);
   if (keyPressed==true){
 if(keyCode == RIGHT){
 e++;
 delay(100);}
 if(keyCode == LEFT){
 e--;delay(100);} }
 if(e>3){e=0;}
 if(e<0){e=3;}
 if(e==0){image(R1, 100, 40, width/1.1, height/1.2);}
 if(e==1){image(R2, 100, 40, width/1.1, height/1.2);}
 if(e==2){image(R3, 100, 40, width/1.1, height/1.2);}
 if(e==3){image(R4, 80, 40, width/1.2, height/1.3);}

 }
      if(tribe==6){background(bl);
    if (keyPressed==true){
 if(keyCode == RIGHT){
 f++;
 delay(100);}
 if(keyCode == LEFT){
 f--;delay(100);} }
 if(f>3){f=0;}
 if(f<0){f=3;}
 if(f==0){image(Se1, 100, 40, width/1.1, height/1.2);}
 if(f==1){image(Se2, 100, 40, width/1.1, height/1.2);}
 if(f==2){image(Se3, 80, 40, width/1.2, height/1.3);}
if(f==3){image(Se4, 80, 40, width/1.2, height/1.3);}

 }
       if(tribe==9){background(o);
     if (keyPressed==true){
 if(keyCode == RIGHT){
 i++;
 delay(100);}
 if(keyCode == LEFT){
 i--;delay(100);} }
 if(i>3){i=0;}
 if(i<0){i=3;}
 if(i==0){image(H1, 100, 40, width/1.1, height/1.2);}
 if(i==1){image(H2, 100, 40, width/1.1, height/1.2);}
 if(i==2){image(H3, 80, 40, width/1.2, height/1.3);}
 if(i==3){image(H4, 80, 40, width/1.2, height/1.3);}

}
        if(tribe==10){ background(l);
      if (keyPressed==true){
 if(keyCode == RIGHT){
 j++;
 delay(100);}
 if(keyCode == LEFT){
 j--;delay(100);} }
 if(j>3){j=0;}
 if(j<0){j=3;}
 if(j==0){image(L1, 100, 40, width/1.1, height/1.2);}
 if(j==1){image(L2, 100, 40, width/1.1, height/1.2);}
 if(j==2){image(L3, 80, 40, width/1.2, height/1.3);}
 if(j==3){image(L4, 80, 40, width/1.2, height/1.3);}

 }
         if(tribe==7){background(n);
       if (keyPressed==true){
 if(keyCode == RIGHT){
 m++;
 delay(100);}
 if(keyCode == LEFT){
 m--;delay(100);} }
 if(m>3){m=0;}
 if(m<0){m=3;}
 if(m==0){image(N1, 100, 40, width/1.1, height/1.2);}
 if(m==1){image(N2, 100, 40, width/1.1, height/1.2);}
 if(m==2){image(N3, 80, 40, width/1.2, height/1.3);}
 if(m==3){image(N4, 80, 40, width/1.2, height/1.3);}

}
          if(tribe==8){ background(s);
        if (keyPressed==true){
 if(keyCode == RIGHT){
 h++;
 delay(100);}
 if(keyCode == LEFT){
 h--;delay(100);} }
 if(h>3){h=0;}
 if(h<0){h=3;}
 if(h==0){image(Si1, 100, 40, width/1.1, height/1.2);}
 if(h==1){image(Si2, 100, 40, width/1.1, height/1.2);}
 if(h==2){image(Si3, 80, 40, width/1.2, height/1.3);}
  if(h==3){image(Si4, 80, 40, width/1.2, height/1.3);}

}





Delta=0;
}





}


















void keyPressed() {
 
    if (keyCode == CONTROL) {
 ctrlPressed = true;
 }
if (char(keyCode) == 'S') {
sPressed = true;
}
if (ctrlPressed && sPressed && tribe > 0) {
 saved=true;

}

if (keyCode == RIGHT && tribe > 0||keyCode == LEFT && tribe > 0||keyCode == BACKSPACE&& tribe > 0||keyCode == DELETE&& tribe > 0) {
 if(tribe==1){
 background(y);
 if (keyPressed==true){
 if(keyCode == RIGHT){
 x++;
 delay(100);}
 if(keyCode == LEFT){
 x--;delay(100);} }
 if(x>5){x=0;}
 if(x<0){x=5;}
 if(x==0){image(S1, 100, 0, width/1.1, height/1.2);}
 if(x==1){image(S2, 100, 0, width/1.1, height/1.2);}
 if(x==2){image(S3, 100, 0, width/1.1, height/1.2);}
 if(x==3){image(S4, 100, 0, width/1.1, height/1.2);}
 if(x==4){image(S5, 100, 0, width/1.1, height/1.2);}
 if(x==5){image(S6, 100, 0, width/1.1, height/1.2);}
}    
 
  if(tribe==2){background(b);
if (keyPressed==true){
 if(keyCode == RIGHT){
 a++;
 delay(100);}
 if(keyCode == LEFT){
 a--;delay(100);} }
 if(a>3){a=0;}
 if(a<0){a=3;}
 if(a==0){image(I1, 100, 40, width/1.1, height/1.2);}
 if(a==1){image(I2, 100, 40, width/1.1, height/1.2);}
 if(a==2){image(I3, 100, 0, width/1.1, height/1.2);}
 if(a==3){image(I4, 100, 0, width/1.1, height/1.2);}


}
   if(tribe==3){background(r);
 if (keyPressed==true){
 if(keyCode == RIGHT){
 c++;
 delay(100);}
 if(keyCode == LEFT){
 c--;delay(100);} }
 if(c>3){c=0;}
 if(c<0){c=3;}
 if(c==0){image(Sk1, 100, 40, width/1.1, height/1.2);}
 if(c==1){image(Sk2, 100, 40, width/1.1, height/1.2);}
 if(c==2){image(Sk3, 40, 40, width/1.1, height/1.2);}
 if(c==3){image(Sk4, 40, 40, width/1.1, height/1.2);}

 
 }
    if(tribe==4){background(br);
  if (keyPressed==true){
 if(keyCode == RIGHT){
 d++;
 delay(100);}
 if(keyCode == LEFT){
 d--;delay(100);} }
 if(d>3){d=0;}
 if(d<0){d=3;}
 if(d==0){image(M1, 100, 40, width/1.1, height/1.2);}
 if(d==1){image(M2, 100, 40, width/1.1, height/1.2);}
 if(d==2){image(M3, 80, 40, width/1.2, height/1.3);}
 if(d==3){image(M4, 80, 40, width/1.2, height/1.3);}

 }
     if(tribe==5){background(g);
   if (keyPressed==true){
 if(keyCode == RIGHT){
 e++;
 delay(100);}
 if(keyCode == LEFT){
 e--;delay(100);} }
 if(e>3){e=0;}
 if(e<0){e=3;}
 if(e==0){image(R1, 100, 40, width/1.1, height/1.2);}
 if(e==1){image(R2, 100, 40, width/1.1, height/1.2);}
 if(e==2){image(R3, 100, 40, width/1.1, height/1.2);}
 if(e==3){image(R4, 80, 40, width/1.2, height/1.3);}

 }
      if(tribe==6){background(bl);
    if (keyPressed==true){
 if(keyCode == RIGHT){
 f++;
 delay(100);}
 if(keyCode == LEFT){
 f--;delay(100);} }
 if(f>3){f=0;}
 if(f<0){f=3;}
 if(f==0){image(Se1, 100, 40, width/1.1, height/1.2);}
 if(f==1){image(Se2, 100, 40, width/1.1, height/1.2);}
 if(f==2){image(Se3, 80, 40, width/1.2, height/1.3);}
if(f==3){image(Se4, 80, 40, width/1.2, height/1.3);}

 }
       if(tribe==9){background(o);
     if (keyPressed==true){
 if(keyCode == RIGHT){
 i++;
 delay(100);}
 if(keyCode == LEFT){
 i--;delay(100);} }
 if(i>3){i=0;}
 if(i<0){i=3;}
 if(i==0){image(H1, 100, 40, width/1.1, height/1.2);}
 if(i==1){image(H2, 100, 40, width/1.1, height/1.2);}
 if(i==2){image(H3, 80, 40, width/1.2, height/1.3);}
 if(i==3){image(H4, 80, 40, width/1.2, height/1.3);}

}
        if(tribe==10){ background(l);
      if (keyPressed==true){
 if(keyCode == RIGHT){
 j++;
 delay(100);}
 if(keyCode == LEFT){
 j--;delay(100);} }
 if(j>3){j=0;}
 if(j<0){j=3;}
 if(j==0){image(L1, 100, 40, width/1.1, height/1.2);}
 if(j==1){image(L2, 100, 40, width/1.1, height/1.2);}
 if(j==2){image(L3, 80, 40, width/1.2, height/1.3);}
 if(j==3){image(L4, 80, 40, width/1.2, height/1.3);}

 }
         if(tribe==7){background(n);
       if (keyPressed==true){
 if(keyCode == RIGHT){
 m++;
 delay(100);}
 if(keyCode == LEFT){
 m--;delay(100);} }
 if(m>3){m=0;}
 if(m<0){m=3;}
 if(m==0){image(N1, 100, 40, width/1.1, height/1.2);}
 if(m==1){image(N2, 100, 40, width/1.1, height/1.2);}
 if(m==2){image(N3, 80, 40, width/1.2, height/1.3);}
 if(m==3){image(N4, 80, 40, width/1.2, height/1.3);}

}
          if(tribe==8){ background(s);
        if (keyPressed==true){
 if(keyCode == RIGHT){
 h++;
 delay(100);}
 if(keyCode == LEFT){
 h--;delay(100);} }
 if(h>3){h=0;}
 if(h<0){h=3;}
 if(h==0){image(Si1, 100, 40, width/1.1, height/1.2);}
 if(h==1){image(Si2, 100, 40, width/1.1, height/1.2);}
 if(h==2){image(Si3, 80, 40, width/1.2, height/1.3);}
  if(h==3){image(Si4, 80, 40, width/1.2, height/1.3);}

}
     
 
 
 
 
 
 
}
}

void keyReleased() {
   ctrlPressed = false;
  sPressed = false;
}















void mouseClicked(){
if(mouseX>0&&mouseX<100&&mouseY<700&&mouseY>600){set++;}
if(mouseX>0&&mouseX<100&&mouseY<600&&mouseY>500){GG++;}





}
void mouseDragged(){
if(tribe>0&&set==1&&mouseX>140||mouseY<400&&tribe>0&&set==1){
  if(mouseX>130||mouseY>110){
fill(v);
ellipse(mouseX,mouseY,Value,Value);
  }
}
}
void mousePressed(){
 
if(tribe>0&&GG==1&&mouseX>140||mouseY<400&&tribe>0&&GG==1){
 
 if(mouseX>130||mouseY>110){
   loadPixels();
  myFloodFill = new FloodFill1();
  if (mousePressed) {
    myFloodFill.DoFill(mouseX, mouseY, color(255, 0, 0));
    updatePixels();
  }}
 
 
  }}

Start with something simple. Can you run this? Should run in spite of gradle warning.

import controlP5.*;
ControlP5 cp5;

int sliderValue = 100;

void setup() {
  fullScreen();
  background(209);

  cp5 = new ControlP5(this);

  // value of this slider will be linked to variable 'sliderValue'
  cp5.addSlider("sliderValue")
    .setPosition(100, 150)
    .setRange(0, 255)
    .setSize(80, 300)
    ;
}

void draw() {
  fill(sliderValue);
  rect(300, 200, 400, 400);
}
1 Like

reinstall android mode, it should work after this.