This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import processing.core.PApplet; | |
| import processing.core.PVector; | |
| import java.util.ArrayList; | |
| PVector target, cameraOffset; | |
| float centerToCornerDistance, farAway; | |
| float alignRadius, alignWeight, centralizeRadius, centralizeWeight; | |
| float spdLimit = 10; | |
| int fishCount = 50; | |
| Fish player; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import processing.core.PApplet; | |
| import processing.core.PVector; | |
| import java.util.ArrayList; | |
| public class MainApp extends PApplet { | |
| PVector target, cameraOffset; | |
| float centerToCornerDistance, farAway; | |
| float alignRadius, alignWeight, centralizeRadius, centralizeWeight; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*{ | |
| "pixelRatio": 1 | |
| }*/ | |
| precision highp float; | |
| uniform float time; | |
| uniform vec2 resolution; | |
| uniform sampler2D backbuffer; | |
| const float pi = 3.14159265359; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import peasy.PeasyCam; | |
| import processing.core.PApplet; | |
| import processing.core.PGraphics; | |
| import processing.core.PVector; | |
| import processing.opengl.PShader; | |
| import java.util.ArrayList; | |
| public class MainApp extends PApplet { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import processing.core.PApplet; | |
| import processing.core.PGraphics; | |
| import processing.opengl.PShader; | |
| public class MainApp extends PApplet { | |
| public static void main(String[] args) { | |
| PApplet.main("MainApp"); | |
| } | |
| PShader waterShader; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Mountain</title> | |
| <link rel="shortcut icon" type="image/png" href="https://krabcode.github.io/favicon.png"/> | |
| <link rel="stylesheet" href="sketch.css"> | |
| <script src="p5.js"></script> | |
| <script src="sketch.js"></script> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ArrayList<String> log = new ArrayList<String>(); | |
| boolean scrollbarBeingDragged = false; | |
| float windowOffsetY = 0; | |
| float handleOffsetY = 0; | |
| int fontSize = 20; | |
| int lastMouseWheelEvent = 0; | |
| void setup() { | |
| size(800, 800); | |
| for (int i = 0; i < 30; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float t; | |
| void setup() { | |
| fullScreen(P2D); | |
| } | |
| void draw() { | |
| t = radians(frameCount); | |
| background(0); | |
| pushMatrix(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.UUID; | |
| PImage src; | |
| PGraphics temp; | |
| PVector[] directions; | |
| public void settings() { | |
| // fullScreen(P2D, 2); | |
| size(800, 800, P2D); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float back, fill, stroke, weight, rotationZ, rotationYspeed, size; | |
| void setup() { | |
| size(800, 800, P3D); | |
| //fullScreen(P3D); | |
| } | |
| void draw() { | |
| background(back); | |
| fill(fill); |