Skip to content

Instantly share code, notes, and snippets.

View Sardtok's full-sized avatar

Sigmund Hansen Sardtok

  • Uptime Consulting
  • Oslo, Norway
  • X @Sardtok
View GitHub Profile
@Sardtok
Sardtok / Sprettball.pde
Created September 8, 2019 20:29
En ball som spretter rundt på skjermen, som man kan endre hastigheten til med tastaturstyring
float x = 200;
float y = 200;
float xSpeed = 2.5;
float ySpeed = 1.5;
boolean leftPressed = false;
boolean rightPressed = false;
boolean upPressed = false;
boolean downPressed = false;
@Sardtok
Sardtok / Ansikt.pde
Last active September 8, 2019 20:25
Et ansikt tegnet med firkanter og ellipser
void setup() {
size(400, 400);
}
void draw() {
background(0);
fill(255,128,64);
ellipse(200,200, 400, 100);
@Sardtok
Sardtok / Triforce.pde
Created September 8, 2019 20:15
Tre triangler
color bg;
void setup() {
size(400, 400);
colorMode(HSB, 360, 100, 100);
bg = color(0, 100, 100);
}
void draw() {
background(bg);

Keybase proof

I hereby claim:

  • I am sardtok on github.
  • I am sardtok (https://keybase.io/sardtok) on keybase.
  • I have a public key ASBfxW07ohbgy_SUVj4r_ZKcmN7uECUxuo-4PN29N7uBsAo

To claim this, I am signing this object: