This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* PolygonShapes.cpp | |
* HereToThere | |
* | |
* Created by David Wicks on 2/23/11. | |
* Copyright 2011 David Wicks. All rights reserved. | |
* | |
*/ | |
#include "PolygonShapes.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.sansumbrella.scriptlauncher</string> | |
<key>Program</key> | |
<string>/usr/bin/python</string> | |
<key>ProgramArguments</key> | |
<array> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = David Wicks | |
email = [email protected] | |
[color] | |
branch = auto | |
status = auto | |
diff = auto | |
[alias] | |
st = status -sb | |
co = checkout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "cinder/app/AppBasic.h" | |
#include "cinder/gl/gl.h" | |
#include "cinder/params/Params.h" | |
#include "cinder/ImageIo.h" | |
#include "cinder/Utilities.h" | |
#include "cinder/Capture.h" | |
#include "cinder/gl/Texture.h" | |
#include "CinderOpenCV.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void drawRepeatingTexture( const gl::Texture& tex, const Rectf& destRect, const Vec2f& textureBounds ) | |
{ | |
tex.enableAndBind(); | |
glEnableClientState( GL_VERTEX_ARRAY ); | |
glEnableClientState( GL_TEXTURE_COORD_ARRAY ); | |
GLfloat verts[8]; | |
GLfloat texCoords[8]; | |
glVertexPointer( 2, GL_FLOAT, 0, verts ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// normal TextLayout code | |
TextLayout layout; | |
layout.clear( ColorA( CM_HSV, 0.0f, 0.0f, 0.0f, 0.0f ) ); | |
layout.setFont( mDateFont ); | |
layout.setColor( ColorA( CM_HSV, 0.0f, 0.0f, 1.0f, 1.0f ) ); | |
layout.setLeadingOffset( 4.0f ); | |
// write some | |
layout.addLine( "Some Text" ); | |
layout.addLine( "Some more text." ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DateUtils.cpp | |
// Created by David Wicks on 4/23/11. | |
#include "DateUtils.h" | |
#include <sstream> | |
using namespace boost::gregorian; | |
using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Polymaps Learning</title> | |
<meta name="author" content="David Wicks"/> | |
<!-- Date: 2011-04-11 --> | |
<!-- Get polymaps for this to work: http://polymaps.org/ --> | |
<script type="text/javascript" src="lib/polymaps.min.js"></script> | |
<script type="text/javascript"> | |
function run() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String imageName; | |
String outputPath; | |
boolean labelTiles = false; | |
int tileSize = 256; | |
PFont tileFont; | |
PImage startImage; | |
void setup() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
import Image | |
import sys | |
import os | |
def main(): | |
path = "where-images-may-live" | |