Skip to content

Instantly share code, notes, and snippets.

View KrabCode's full-sized avatar
🔮
discovering Tooll3

Jakub Rak KrabCode

🔮
discovering Tooll3
  • Prague, Czech Republic
  • 20:12 (UTC +02:00)
View GitHub Profile
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
spacing: 50,
children: <Widget>[
Text(
'floppy fish',
style: TextStyle(
// Should work on APDE
// Based on a GDC talk called "Exploring the Tech and Design of Noita"
// https://www.youtube.com/watch?v=prXuyMCgbTc
private PGraphics pg;
float scale = 0.075f;
float prevScale = scale;
float rectWidth, rectHeight;
@KrabCode
KrabCode / SolarSystem2D.pde
Last active December 29, 2024 23:20
Install on Android with APDE.
float sunSize = 100;
float planetRadiusStep = 180;
float planetSize = 45;
int count = 4;
int brightColor;
int darkColor;
int orbitColor;
int bgColor;
ArrayList<Float> offsets = new ArrayList<Float>();
float mouseOffset = 0;
@KrabCode
KrabCode / Particles.pde
Created December 25, 2024 10:52
Demonstrating adding up various forces as acceleration of a single particle.
PVector emitter = new PVector();
int particleCount = 100;
int particlesCreatedPerFrame = 5;
int particleLifetimeFrames = 60;
float time;
ArrayList<Particle> particles = new ArrayList<Particle>();
void setup() {
size(800, 800);
background(24);
{
"children": [
{
"children": [
{
"children": [
{
"valueString": "dark",
"children": [
{
@KrabCode
KrabCode / MoonPhaseMonthGrid.pde
Last active November 9, 2024 10:59
A calendar of 365 moons in different phases as a looping trippy visual.
import com.krab.lazy.*;
LazyGui gui;
String[] monthNames = new String[]{
"January",
"February",
"March",
"April",
"May",
"June",
@KrabCode
KrabCode / MoonPhases.pde
Created November 7, 2024 23:39
Animated 2D moon with debug visuals. Uses LazyGui.
import com.krab.lazy.*;
LazyGui gui;
PGraphics pg;
float t;
float phase;
float lightPhase;
boolean growing;
float r;
float angle0;
float count = 10;
float step = 40;
float xPos = 400;
PGraphics gradient;
void setup() {
size(800, 600, P2D);
createGradient();
import com.krab.lazy.*;
LazyGui gui;
PGraphics noiseOverlay;
void setup() {
size(800, 800, P2D);
gui = new LazyGui(this, new LazyGuiSettings()
.setLoadLatestSaveOnStartup(true)
);
import ch.bildspur.postfx.builder.*;
import ch.bildspur.postfx.pass.*;
import ch.bildspur.postfx.*;
import org.gicentre.handy.*;
import com.krab.lazy.*;
PostFX fx;
LazyGui gui;
HandyRenderer hr;
PImage img;