Skip to content

Instantly share code, notes, and snippets.

View skrekhere's full-sized avatar
🔥
cooking up some heat

skrek skrekhere

🔥
cooking up some heat
View GitHub Profile
//initializing parent class
class A{
int x;//variable as example
A(int _x){//constructor
x = _x;//init
}
}
//extending class
class Derived extends A{
int y;//variable as example
@skrekhere
skrekhere / snow.pde
Created November 20, 2018 02:37
snow but mine
snowflake[] snowflakes;
snowflake snowflake;
float wind = 4.0;
int snowAmount;
void setup(){
size(600,400);
background(0);
snowAmount = 400;
snowflakes = new snowflake[snowAmount];
for(int i = 0; i < snowflakes.length; i++){