Skip to content

Instantly share code, notes, and snippets.

#include "ofApp.h"
//pointer and video variable info
int vidX = 320;
int vidY = 240;
int pointerX = 0;
int pointerY = 0;
int pointerRad = 20;
//array for images
#include "ofApp.h"
int vidX = 320;
int vidY = 240;
int pointerX = 0;
int pointerY = 0;
int pointerRad = 20;
int i = 0;
//used within _i
@gatana
gatana / Circle.cpp
Last active April 18, 2016 18:31
Eating a Rainbow Donut by the East River during Blood Moon
//
// Circle.cpp
// Perspective_Landscape
//
// Created by Ana Sofia Remis on 4/18/16.
//
//
#include "Circle.hpp"
#include "ofMain.h"
#include "FastLED.h"
#define DATA_PIN 5
#define CLOCK_PIN 6
#define LED_TYPE DOTSTAR
#define COLOR_ORDER GRB
#define NUM_LEDS 15
CRGB leds[NUM_LEDS];
//#define BRIGHTNESS 96
#include "FastLED.h"
// How many leds in your strip?
#define NUM_LEDS 15
// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
// ground, and power), like the LPD8806, define both DATA_PIN and CLOCK_PIN
#define DATA_PIN 5
#define CLOCK_PIN 6
#include "FastLED.h"
FASTLED_USING_NAMESPACE
// How many leds are in the strip?
#define NUM_LEDS 15
// Data pin that led data will be written out over
#define DATA_PIN 6
//include sortfware to serial port communication
#include <SoftwareSerial.h>
#include <MP3.h>
//mug music. Ana Sofia Remis. March 2016
//thanks to Bonnie Eisenman for the idea
//Michael Wolf for guidance along the way!
//Jess Herzog, Shane Cashman, & Mami for support
//Elechouse for the library at https://github.com/elechouse/Mp3Shield/blob/master/MP3.h
//TNS DT BFA Lab Midterm
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetBackgroundColor(208,120,13,90);
ofSetFrameRate(60);
ofSetCircleResolution(120);
counter = 0;
// me.circumference =8;
//
// Forma.cpp
// midterm
//
// Created by Ana Sofia Remis on 3/26/16.
//
//
#include "Forma.hpp"
void Forma::formata(float diameter, float circumference, float angle, float size, float maxSize){
//
// Circle.cpp
// Cathairs
//
// Created by Ana Sofia Remis on 3/15/16.
//
//
#include "Circle.hpp"