TouchShield Slide, MeCap lithium backpack, DoubleWide extender shield, some mini-breadboards and a 3-axis accelerometer arrived from Liquidware some time last week. Made a “snow” program based on this one which I think is pretty much exactly the same except that one has a larger “brush size” when pressing on the screen.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <SubPGraphics.h>
 
#define HEIGHT 240
#define WIDTH 320
 
POINT dot;
 
void setup() {
  setBrightness(0);
  background(255);
  stroke(255);
  fill(255);
}
 
void loop() {
  if( touch_getCursor(&dot) ) {
    noStroke();
    fill(0);
    ellipse(dot.x,dot.y,3,3);
    stroke(255);
    fill(255);
  }
  ellipse(random(WIDTH),random(HEIGHT),1,1);
}
Tagged with:
 

2 Responses to TouchShield Slide – Snow

  1. WalterJ says:

    Oh wow you start your exclamation marks with the dot.

  2. Aspheric says:

    I think it should be like a light blue when you write..