recotana October 16, 2011
first commit

1 contributor

## Users on GitHub who have contributed to this file

- recotana

100644 92 lines (73 sloc) 1.4 kb

- Edit this file
- Raw
- Blame
- History

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    /** * Mouse Functions.  *  * Click on the box and drag it across the screen.  */ import oscP5.*;import netP5.*;
    OscP5 oscP5;NetAddress myRemoteLocation;
    int bx;int by;int bs = 20;boolean bover = false;boolean locked = false;int bdifx = 0; int bdify = 0; int oldv;
    void setup() {  size(200, 400);  bx = width/2;  by = height/2;  rectMode(RADIUS);   oscP5 = new OscP5(this,12000); myRemoteLocation = new NetAddress("224.0.0.0",10000); }
    void draw() {   background(0);    // Test if the cursor is over the box   if (mouseX > bx-bs && mouseX < bx+bs &&       mouseY > by-bs && mouseY < by+bs) {    bover = true;      if(!locked) {       stroke(255);       fill(153);    }   } else {    stroke(153);    fill(153);    bover = false;  }    // Draw the box  rect(bx, by, bs, bs);}
    void mousePressed() {  if(bover) {     locked = true;     fill(255, 255, 255);  } else {    locked = false;  }//  bdifx = mouseX-bx;   bdify = mouseY-by;
    }
    void mouseDragged() {  if(locked) {  if(mouseY>360)  by = 360;  else if(mouseY<30)  by = 60;  else by = mouseY-bdify;  print(by+"\n");    int value=by;  value = int(value/100)*100;  if(oldv==value) return;  OscMessage myMessage = new OscMessage("/ard/aaa");    myMessage.add(value);   oscP5.send(myMessage, myRemoteLocation);    oldv=value;  }  }
    void mouseReleased() {  locked = false;}

## Keyboard Shortcuts (see all)

### Site wide shortcuts

s
  Focus site search

?
  Bring up this help dialog

### Commit list

j
  Move selection down

k
  Move selection up

c or o or enter
  Open commit

y
  Expand URL to its canonical form

### Pull request list

j
  Move selection down

k
  Move selection up

o or enter
  Open issue

⌘ctrl + enter
  Submit comment

### Issues

j
  Move selection down

k
  Move selection up

x
  Toggle selection

o or enter
  Open issue

⌘ctrl + enter
  Submit comment

c
  Create issue

l
  Create label

i
  Back to inbox

u
  Back to issues

/
  Focus issues search

### Issues Dashboard

j
  Move selection down

k
  Move selection up

o or enter
  Open issue

### Network Graph

← or h
  Scroll left

→ or l
  Scroll right

↑ or k
  Scroll up

↓ or j
  Scroll down

t
  Toggle visibility of head labels

shift ← or shift h
  Scroll all the way left

shift → or shift l
  Scroll all the way right

shift ↑ or shift k
  Scroll all the way up

shift ↓ or shift j
  Scroll all the way down

### Source Code Browsing

t
  Activates the file finder

l
  Jump to line

w
  Switch branch/tag

y
  Expand URL to its canonical form

### Browsing Commits

⌘ctrl + enter
  Submit comment

escape
  Close form

p
  Parent commit

o
  Other parent commit

## Markdown Cheat Sheet

### Format Text

Headers

    # This is an <h1> tag
    ## This is an <h2> tag
    ###### This is an <h6> tag

Text styles

    *This text will be italic*
    _This will also be italic_
    **This text will be bold**
    __This will also be bold__

    *You **can** combine them*

### Lists

Unordered

    * Item 1
    * Item 2
      * Item 2a
      * Item 2b

Ordered

    1. Item 1
    2. Item 2
    3. Item 3
       * Item 3a
       * Item 3b

### Miscellaneous

Images

    ![GitHub Logo](/images/logo.png)
    Format: ![Alt Text](url)

Links

    http://github.com - automatic!
    [GitHub](http://github.com)

Blockquotes

    As Kanye West said:

    > We're living the future so
    > the present is our past.

### Code Examples in Markdown

Syntax highlighting with GFM

    ```javascript
    function fancyAlert(arg) {
      if(arg) {
        $.facebox({div:'#foo'})
      }
    }
    ```

Or, indent your code 4 spaces

    Here is a Python code example
    without syntax highlighting:

        def foo:
          if not bar:
            return true

Inline code for comments

    I think you should use an
    `<addr>` element here instead.

Something went wrong with that request. Please try again. Dismiss

## Looking for the GitHub logo?

- #### GitHub Logo

  Download

- #### The Octocat

  Download