├── .gitignore ├── other └── vectorField_wParticles │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ └── data │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ ├── src │ ├── main.cpp │ ├── ofApp.cpp │ ├── ofApp.h │ ├── particle.cpp │ ├── particle.h │ ├── vectorField.cpp │ └── vectorField.h │ ├── vectorField_wParticles.cbp │ ├── vectorField_wParticles.sln │ ├── vectorField_wParticles.vcxproj │ ├── vectorField_wParticles.vcxproj.filters │ ├── vectorField_wParticles.vcxproj.user │ ├── vectorField_wParticles.workspace │ └── vectorField_wParticles.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── vectorField_wParticles Debug.xcscheme │ └── vectorField_wParticles Release.xcscheme ├── readme.md ├── week1 ├── 0_rectangleClass │ ├── 0_rectangleClass.cbp │ ├── 0_rectangleClass.sln │ ├── 0_rectangleClass.vcxproj │ ├── 0_rectangleClass.vcxproj.filters │ ├── 0_rectangleClass.vcxproj.user │ ├── 0_rectangleClass.workspace │ ├── 0_rectangleClass.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 0_rectangleClass Debug.xcscheme │ │ │ └── 0_rectangleClass Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── rectangle.cpp │ │ └── rectangle.h ├── 1_rectangleInterpolate │ ├── 1_rectangleInterpolate.cbp │ ├── 1_rectangleInterpolate.sln │ ├── 1_rectangleInterpolate.vcxproj │ ├── 1_rectangleInterpolate.vcxproj.filters │ ├── 1_rectangleInterpolate.vcxproj.user │ ├── 1_rectangleInterpolate.workspace │ ├── 1_rectangleInterpolate.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 1_rectangleInterpolate Debug.xcscheme │ │ │ └── 1_rectangleInterpolate Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── rectangle.cpp │ │ └── rectangle.h ├── 2_rectangleInterpolate2 │ ├── 2_rectangleInterpolate2.cbp │ ├── 2_rectangleInterpolate2.sln │ ├── 2_rectangleInterpolate2.vcxproj │ ├── 2_rectangleInterpolate2.vcxproj.filters │ ├── 2_rectangleInterpolate2.vcxproj.user │ ├── 2_rectangleInterpolate2.workspace │ ├── 2_rectangleInterpolate2.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 2_rectangleInterpolate2 Debug.xcscheme │ │ │ └── 2_rectangleInterpolate2 Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── rectangle.cpp │ │ └── rectangle.h ├── 3_rectangleInterpolatePowf │ ├── 3_rectangleInterpolatePowf.cbp │ ├── 3_rectangleInterpolatePowf.sln │ ├── 3_rectangleInterpolatePowf.vcxproj │ ├── 3_rectangleInterpolatePowf.vcxproj.filters │ ├── 3_rectangleInterpolatePowf.vcxproj.user │ ├── 3_rectangleInterpolatePowf.workspace │ ├── 3_rectangleInterpolatePowf.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 3_rectangleInterpolatePowf Debug.xcscheme │ │ │ └── 3_rectangleInterpolatePowf Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── rectangle.cpp │ │ └── rectangle.h ├── 4_rectangleInterpolatePowfMultiple │ ├── 4_rectangleInterpolatePowfMultiple.cbp │ ├── 4_rectangleInterpolatePowfMultiple.sln │ ├── 4_rectangleInterpolatePowfMultiple.vcxproj │ ├── 4_rectangleInterpolatePowfMultiple.vcxproj.filters │ ├── 4_rectangleInterpolatePowfMultiple.vcxproj.user │ ├── 4_rectangleInterpolatePowfMultiple.workspace │ ├── 4_rectangleInterpolatePowfMultiple.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 4_rectangleInterpolatePowfMultiple Debug.xcscheme │ │ │ └── 4_rectangleInterpolatePowfMultiple Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── rectangle.cpp │ │ └── rectangle.h ├── 5_rectangleXeno │ ├── 5_rectangleXeno.cbp │ ├── 5_rectangleXeno.sln │ ├── 5_rectangleXeno.vcxproj │ ├── 5_rectangleXeno.vcxproj.filters │ ├── 5_rectangleXeno.vcxproj.user │ ├── 5_rectangleXeno.workspace │ ├── 5_rectangleXeno.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 5_rectangleXeno Debug.xcscheme │ │ │ └── 5_rectangleXeno Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── rectangle.cpp │ │ └── rectangle.h ├── circleDistancePct │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── circleDistancePct.cbp │ ├── circleDistancePct.sln │ ├── circleDistancePct.vcxproj │ ├── circleDistancePct.vcxproj.filters │ ├── circleDistancePct.vcxproj.user │ ├── circleDistancePct.workspace │ ├── circleDistancePct.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── circleDistancePct Debug.xcscheme │ │ │ └── circleDistancePct Release.xcscheme │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── drawingLinearStretch │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── drawingLinearStretch.cbp │ ├── drawingLinearStretch.sln │ ├── drawingLinearStretch.vcxproj │ ├── drawingLinearStretch.vcxproj.filters │ ├── drawingLinearStretch.vcxproj.user │ ├── drawingLinearStretch.workspace │ ├── drawingLinearStretch.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── drawingLinearStretch Debug.xcscheme │ │ │ └── drawingLinearStretch Release.xcscheme │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── linearMapping │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── linearMapping.cbp │ ├── linearMapping.sln │ ├── linearMapping.vcxproj │ ├── linearMapping.vcxproj.filters │ ├── linearMapping.vcxproj.user │ ├── linearMapping.workspace │ ├── linearMapping.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── linearMapping Debug.xcscheme │ │ │ └── linearMapping Release.xcscheme │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h └── videoDrawing │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ └── data │ │ ├── .gitkeep │ │ └── fingers.mov │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ ├── src │ ├── main.cpp │ ├── ofApp.cpp │ └── ofApp.h │ ├── videoDrawing.cbp │ ├── videoDrawing.sln │ ├── videoDrawing.vcxproj │ ├── videoDrawing.vcxproj.filters │ ├── videoDrawing.vcxproj.user │ ├── videoDrawing.workspace │ └── videoDrawing.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── videoDrawing Debug.xcscheme │ └── videoDrawing Release.xcscheme ├── week2 ├── 0_sinExample │ ├── .sln │ ├── .vcproj │ ├── .vcproj.user │ ├── 0_sinExample.cbp │ ├── 0_sinExample.sln │ ├── 0_sinExample.vcxproj │ ├── 0_sinExample.vcxproj.filters │ ├── 0_sinExample.vcxproj.user │ ├── 0_sinExample.workspace │ ├── 0_sinExample.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 0_sinExample Debug.xcscheme │ │ │ └── 0_sinExample Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 1_sinExample_phase │ ├── 1_sinExample_phase.cbp │ ├── 1_sinExample_phase.sln │ ├── 1_sinExample_phase.vcxproj │ ├── 1_sinExample_phase.vcxproj.filters │ ├── 1_sinExample_phase.vcxproj.user │ ├── 1_sinExample_phase.workspace │ ├── 1_sinExample_phase.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 1_sinExample_phase Debug.xcscheme │ │ │ └── 1_sinExample_phase Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 2_sinExample3_AM │ ├── 2_sinExample3_AM.cbp │ ├── 2_sinExample3_AM.sln │ ├── 2_sinExample3_AM.vcxproj │ ├── 2_sinExample3_AM.vcxproj.filters │ ├── 2_sinExample3_AM.vcxproj.user │ ├── 2_sinExample3_AM.workspace │ ├── 2_sinExample3_AM.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 2_sinExample3_AM Debug.xcscheme │ │ │ └── 2_sinExample3_AM Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 3_sinExample_circle │ ├── 3_sinExample_circle.cbp │ ├── 3_sinExample_circle.sln │ ├── 3_sinExample_circle.vcxproj │ ├── 3_sinExample_circle.vcxproj.filters │ ├── 3_sinExample_circle.vcxproj.user │ ├── 3_sinExample_circle.workspace │ ├── 3_sinExample_circle.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 3_sinExample_circle Debug.xcscheme │ │ │ └── 3_sinExample_circle Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 4_sinExample_pointRecorder │ ├── 4_sinExample_pointRecorder.cbp │ ├── 4_sinExample_pointRecorder.sln │ ├── 4_sinExample_pointRecorder.vcxproj │ ├── 4_sinExample_pointRecorder.vcxproj.filters │ ├── 4_sinExample_pointRecorder.vcxproj.user │ ├── 4_sinExample_pointRecorder.workspace │ ├── 4_sinExample_pointRecorder.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 4_sinExample_pointRecorder Debug.xcscheme │ │ │ └── 4_sinExample_pointRecorder Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 5_sinExample_multiCircles │ ├── 5_sinExample_multiCircles.cbp │ ├── 5_sinExample_multiCircles.sln │ ├── 5_sinExample_multiCircles.vcxproj │ ├── 5_sinExample_multiCircles.vcxproj.filters │ ├── 5_sinExample_multiCircles.vcxproj.user │ ├── 5_sinExample_multiCircles.workspace │ ├── 5_sinExample_multiCircles.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 5_sinExample_multiCircles Debug.xcscheme │ │ │ └── 5_sinExample_multiCircles Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 6_sinExample_circlePlusPath │ ├── 6_sinExample_circlePlusPath.cbp │ ├── 6_sinExample_circlePlusPath.sln │ ├── 6_sinExample_circlePlusPath.vcxproj │ ├── 6_sinExample_circlePlusPath.vcxproj.filters │ ├── 6_sinExample_circlePlusPath.vcxproj.user │ ├── 6_sinExample_circlePlusPath.workspace │ ├── 6_sinExample_circlePlusPath.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 6_sinExample_circlePlusPath Debug.xcscheme │ │ │ └── 6_sinExample_circlePlusPath Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 7_sinExample_circlePlusPath_lissajus │ ├── 7_sinExample_circlePlusPath_lissajus.cbp │ ├── 7_sinExample_circlePlusPath_lissajus.sln │ ├── 7_sinExample_circlePlusPath_lissajus.vcxproj │ ├── 7_sinExample_circlePlusPath_lissajus.vcxproj.filters │ ├── 7_sinExample_circlePlusPath_lissajus.vcxproj.user │ ├── 7_sinExample_circlePlusPath_lissajus.workspace │ ├── 7_sinExample_circlePlusPath_lissajus.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 7_sinExample_circlePlusPath_lissajus Debug.xcscheme │ │ │ └── 7_sinExample_circlePlusPath_lissajus Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 8_sinExample_atan │ ├── 8_sinExample_atan.cbp │ ├── 8_sinExample_atan.sln │ ├── 8_sinExample_atan.vcxproj │ ├── 8_sinExample_atan.vcxproj.filters │ ├── 8_sinExample_atan.vcxproj.user │ ├── 8_sinExample_atan.workspace │ ├── 8_sinExample_atan.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 8_sinExample_atan Debug.xcscheme │ │ │ └── 8_sinExample_atan Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── rectangle.cpp │ │ └── rectangle.h ├── angleGrid │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── angleGrid.cbp │ ├── angleGrid.workspace │ ├── angleGrid.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── angleGrid Debug.xcscheme │ │ │ └── angleGrid Release.xcscheme │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── angleSmooth │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── angleSmooth.cbp │ ├── angleSmooth.workspace │ ├── angleSmooth.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── angleSmooth Debug.xcscheme │ │ │ └── angleSmooth Release.xcscheme │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h └── angleStrokeWidth │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── angleStrokeWidth.cbp │ ├── angleStrokeWidth.workspace │ ├── angleStrokeWidth.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── angleStrokeWidth Debug.xcscheme │ │ └── angleStrokeWidth Release.xcscheme │ ├── bin │ └── data │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ ├── main.cpp │ ├── ofApp.cpp │ └── ofApp.h ├── week3 ├── 10_noise │ ├── .sln │ ├── .vcproj │ ├── .vcproj.user │ ├── 10_noise.cbp │ ├── 10_noise.sln │ ├── 10_noise.vcxproj │ ├── 10_noise.vcxproj.filters │ ├── 10_noise.vcxproj.user │ ├── 10_noise.workspace │ ├── 10_noise.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 10_noise Debug.xcscheme │ │ │ └── 10_noise Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 11_noise │ ├── .sln │ ├── .vcproj │ ├── .vcproj.user │ ├── 11_noise.cbp │ ├── 11_noise.sln │ ├── 11_noise.vcxproj │ ├── 11_noise.vcxproj.filters │ ├── 11_noise.vcxproj.user │ ├── 11_noise.workspace │ ├── 11_noise.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 11_noise Debug.xcscheme │ │ │ └── 11_noise Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── sunset.png │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 1_drawingWithTime_1 │ ├── 1_drawingWithTime_1.cbp │ ├── 1_drawingWithTime_1.sln │ ├── 1_drawingWithTime_1.vcxproj │ ├── 1_drawingWithTime_1.vcxproj.filters │ ├── 1_drawingWithTime_1.vcxproj.user │ ├── 1_drawingWithTime_1.workspace │ ├── 1_drawingWithTime_1.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 1_drawingWithTime_1 Debug.xcscheme │ │ │ └── 1_drawingWithTime_1 Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── drawbar_c4_a.aif │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── timePoint.cpp │ │ └── timePoint.h ├── 2_drawingWithTime_2 │ ├── 2_drawingWithTime_2.cbp │ ├── 2_drawingWithTime_2.sln │ ├── 2_drawingWithTime_2.vcxproj │ ├── 2_drawingWithTime_2.vcxproj.filters │ ├── 2_drawingWithTime_2.vcxproj.user │ ├── 2_drawingWithTime_2.workspace │ ├── 2_drawingWithTime_2.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 2_drawingWithTime_2 Debug.xcscheme │ │ │ └── 2_drawingWithTime_2 Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── drawbar_c4_a.aif │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── timePoint.cpp │ │ └── timePoint.h ├── 3_drawingWithTime_3 │ ├── 3_drawingWithTime_3.cbp │ ├── 3_drawingWithTime_3.sln │ ├── 3_drawingWithTime_3.vcxproj │ ├── 3_drawingWithTime_3.vcxproj.filters │ ├── 3_drawingWithTime_3.vcxproj.user │ ├── 3_drawingWithTime_3.workspace │ ├── 3_drawingWithTime_3.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 3_drawingWithTime_3 Debug.xcscheme │ │ │ └── 3_drawingWithTime_3 Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── drawbar_c4_a.aif │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── timePoint.cpp │ │ ├── timePoint.h │ │ ├── timePointRecorder.cpp │ │ └── timePointRecorder.h ├── 4_drawingWithTime_4 │ ├── 4_drawingWithTime_4.cbp │ ├── 4_drawingWithTime_4.sln │ ├── 4_drawingWithTime_4.vcxproj │ ├── 4_drawingWithTime_4.vcxproj.filters │ ├── 4_drawingWithTime_4.vcxproj.user │ ├── 4_drawingWithTime_4.workspace │ ├── 4_drawingWithTime_4.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 4_drawingWithTime_4 Debug.xcscheme │ │ │ └── 4_drawingWithTime_4 Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── drawbar_c4_a.aif │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── timePoint.cpp │ │ ├── timePoint.h │ │ ├── timePointRecorder.cpp │ │ └── timePointRecorder.h ├── 5_drawingWithTime_5 │ ├── 5_drawingWithTime_5.cbp │ ├── 5_drawingWithTime_5.sln │ ├── 5_drawingWithTime_5.vcxproj │ ├── 5_drawingWithTime_5.vcxproj.filters │ ├── 5_drawingWithTime_5.vcxproj.user │ ├── 5_drawingWithTime_5.workspace │ ├── 5_drawingWithTime_5.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 5_drawingWithTime_5 Debug.xcscheme │ │ │ └── 5_drawingWithTime_5 Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── drawbar_c4_a.aif │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── timePoint.cpp │ │ ├── timePoint.h │ │ ├── timePointRecorder.cpp │ │ └── timePointRecorder.h ├── 6_drawingWithTime_6 │ ├── 6_drawingWithTime_6.cbp │ ├── 6_drawingWithTime_6.sln │ ├── 6_drawingWithTime_6.vcxproj │ ├── 6_drawingWithTime_6.vcxproj.filters │ ├── 6_drawingWithTime_6.vcxproj.user │ ├── 6_drawingWithTime_6.workspace │ ├── 6_drawingWithTime_6.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 6_drawingWithTime_6 Debug.xcscheme │ │ │ └── 6_drawingWithTime_6 Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── timePoint.cpp │ │ ├── timePoint.h │ │ ├── timePointRecorder.cpp │ │ └── timePointRecorder.h ├── 9_noise │ ├── .sln │ ├── .vcproj │ ├── .vcproj.user │ ├── 9_noise.cbp │ ├── 9_noise.sln │ ├── 9_noise.vcxproj │ ├── 9_noise.vcxproj.filters │ ├── 9_noise.vcxproj.user │ ├── 9_noise.workspace │ ├── 9_noise.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 9_noise Debug.xcscheme │ │ │ └── 9_noise Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h └── multipleDrawings │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ └── data │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── multipleDrawings.cbp │ ├── multipleDrawings.workspace │ ├── multipleDrawings.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── multipleDrawings Debug.xcscheme │ │ └── multipleDrawings Release.xcscheme │ ├── openFrameworks-Info.plist │ └── src │ ├── main.cpp │ ├── ofApp.cpp │ └── ofApp.h ├── week4 ├── bounceOffTheWalls │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── bounceOffTheWalls.cbp │ ├── bounceOffTheWalls.sln │ ├── bounceOffTheWalls.vcxproj │ ├── bounceOffTheWalls.vcxproj.filters │ ├── bounceOffTheWalls.vcxproj.user │ ├── bounceOffTheWalls.workspace │ ├── bounceOffTheWalls.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── bounceOffTheWalls Debug.xcscheme │ │ │ └── bounceOffTheWalls Release.xcscheme │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h ├── drawingWithParticles │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── drawingWithParticles.cbp │ ├── drawingWithParticles.sln │ ├── drawingWithParticles.vcxproj │ ├── drawingWithParticles.vcxproj.filters │ ├── drawingWithParticles.vcxproj.user │ ├── drawingWithParticles.workspace │ ├── drawingWithParticles.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── drawingWithParticles Debug.xcscheme │ │ │ └── drawingWithParticles Release.xcscheme │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h ├── drawingWithParticles2 │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── drawingWithParticles2.cbp │ ├── drawingWithParticles2.sln │ ├── drawingWithParticles2.vcxproj │ ├── drawingWithParticles2.vcxproj.filters │ ├── drawingWithParticles2.vcxproj.user │ ├── drawingWithParticles2.workspace │ ├── drawingWithParticles2.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── drawingWithParticles2 Debug.xcscheme │ │ │ └── drawingWithParticles2 Release.xcscheme │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h ├── multiParticles │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── multiParticles.cbp │ ├── multiParticles.sln │ ├── multiParticles.vcxproj │ ├── multiParticles.vcxproj.filters │ ├── multiParticles.vcxproj.user │ ├── multiParticles.workspace │ ├── multiParticles.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── multiParticles Debug.xcscheme │ │ │ └── multiParticles Release.xcscheme │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h └── singleParticle │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ └── data │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ ├── singleParticle.cbp │ ├── singleParticle.sln │ ├── singleParticle.vcxproj │ ├── singleParticle.vcxproj.filters │ ├── singleParticle.vcxproj.user │ ├── singleParticle.workspace │ ├── singleParticle.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── singleParticle Debug.xcscheme │ │ └── singleParticle Release.xcscheme │ └── src │ ├── main.cpp │ ├── ofApp.cpp │ ├── ofApp.h │ ├── particle.cpp │ └── particle.h ├── week5 ├── attractionRepulsion │ ├── Makefile │ ├── Project.xcconfig │ ├── attractionRepulsion.cbp │ ├── attractionRepulsion.sln │ ├── attractionRepulsion.vcxproj │ ├── attractionRepulsion.vcxproj.filters │ ├── attractionRepulsion.vcxproj.user │ ├── attractionRepulsion.workspace │ ├── attractionRepulsion.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── attractionRepulsion Debug.xcscheme │ │ │ └── attractionRepulsion Release.xcscheme │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h ├── attractionRepulsion2 │ ├── Makefile │ ├── Project.xcconfig │ ├── attractionRepulsion.cbp │ ├── attractionRepulsion.sln │ ├── attractionRepulsion.vcxproj │ ├── attractionRepulsion.vcxproj.filters │ ├── attractionRepulsion.vcxproj.user │ ├── attractionRepulsion.workspace │ ├── attractionRepulsion.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── attractionRepulsion Debug.xcscheme │ │ │ └── attractionRepulsion Release.xcscheme │ ├── attractionRepulsion2.cbp │ ├── attractionRepulsion2.workspace │ ├── attractionRepulsion2.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── attractionRepulsion2 Debug.xcscheme │ │ │ └── attractionRepulsion2 Release.xcscheme │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h ├── timerExample │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ ├── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h │ ├── timerExample.cbp │ ├── timerExample.workspace │ └── timerExample.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ └── xcschemes │ │ ├── timerExample Debug.xcscheme │ │ └── timerExample Release.xcscheme ├── vectorField │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ ├── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ ├── particle.h │ │ ├── vectorField.cpp │ │ └── vectorField.h │ ├── vectorField.cbp │ ├── vectorField.sln │ ├── vectorField.vcxproj │ ├── vectorField.vcxproj.filters │ ├── vectorField.vcxproj.user │ ├── vectorField.workspace │ └── vectorField.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ └── xcschemes │ │ ├── vectorField Debug.xcscheme │ │ └── vectorField Release.xcscheme ├── vectorField_drawings │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ ├── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ ├── particle.h │ │ ├── vectorField.cpp │ │ └── vectorField.h │ ├── vectorField_drawings.cbp │ ├── vectorField_drawings.sln │ ├── vectorField_drawings.vcxproj │ ├── vectorField_drawings.vcxproj.filters │ ├── vectorField_drawings.vcxproj.user │ ├── vectorField_drawings.workspace │ └── vectorField_drawings.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ └── xcschemes │ │ ├── vectorField_drawings Debug.xcscheme │ │ └── vectorField_drawings Release.xcscheme └── vectorField_wParticles │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ └── data │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ ├── src │ ├── main.cpp │ ├── ofApp.cpp │ ├── ofApp.h │ ├── particle.cpp │ ├── particle.h │ ├── vectorField.cpp │ └── vectorField.h │ ├── vectorField_wParticles.cbp │ ├── vectorField_wParticles.sln │ ├── vectorField_wParticles.vcxproj │ ├── vectorField_wParticles.vcxproj.filters │ ├── vectorField_wParticles.vcxproj.user │ ├── vectorField_wParticles.workspace │ └── vectorField_wParticles.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── vectorField_wParticles Debug.xcscheme │ └── vectorField_wParticles Release.xcscheme ├── week6 ├── 1_particle_particle │ ├── 1_particle_particle.cbp │ ├── 1_particle_particle.sln │ ├── 1_particle_particle.vcxproj │ ├── 1_particle_particle.vcxproj.filters │ ├── 1_particle_particle.vcxproj.user │ ├── 1_particle_particle.workspace │ ├── 1_particle_particle.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 1_particle_particle Debug.xcscheme │ │ │ └── 1_particle_particle Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h ├── 2_particle_particle_manyAreSlow │ ├── 2_particle_particle_manyAreSlow.cbp │ ├── 2_particle_particle_manyAreSlow.sln │ ├── 2_particle_particle_manyAreSlow.vcxproj │ ├── 2_particle_particle_manyAreSlow.vcxproj.filters │ ├── 2_particle_particle_manyAreSlow.vcxproj.user │ ├── 2_particle_particle_manyAreSlow.workspace │ ├── 2_particle_particle_manyAreSlow.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 2_particle_particle_manyAreSlow Debug.xcscheme │ │ │ └── 2_particle_particle_manyAreSlow Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h ├── 3_mixing_forces │ ├── 3_mixing_forces.cbp │ ├── 3_mixing_forces.sln │ ├── 3_mixing_forces.vcxproj │ ├── 3_mixing_forces.vcxproj.filters │ ├── 3_mixing_forces.vcxproj.user │ ├── 3_mixing_forces.workspace │ ├── 3_mixing_forces.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 3_mixing_forces Debug.xcscheme │ │ │ └── 3_mixing_forces Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h ├── particlePointer │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ ├── .gitignore │ │ │ └── star.png │ ├── config.make │ ├── icon.rc │ ├── multiParticles.cbp │ ├── multiParticles.sln │ ├── multiParticles.vcxproj │ ├── multiParticles.vcxproj.filters │ ├── multiParticles.vcxproj.user │ ├── multiParticles.workspace │ ├── multiParticles.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── multiParticles Debug.xcscheme │ │ │ └── multiParticles Release.xcscheme │ ├── openFrameworks-Info.plist │ ├── particlePointer.cbp │ ├── particlePointer.workspace │ ├── particlePointer.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── particlePointer Debug.xcscheme │ │ │ └── particlePointer Release.xcscheme │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h ├── particlePointerFont │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── cooperBlack.ttf │ ├── config.make │ ├── icon.rc │ ├── multiParticles.cbp │ ├── multiParticles.sln │ ├── multiParticles.vcxproj │ ├── multiParticles.vcxproj.filters │ ├── multiParticles.vcxproj.user │ ├── multiParticles.workspace │ ├── multiParticles.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── multiParticles Debug.xcscheme │ │ │ └── multiParticles Release.xcscheme │ ├── openFrameworks-Info.plist │ ├── particlePointerFont.cbp │ ├── particlePointerFont.workspace │ ├── particlePointerFont.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── particlePointerFont Debug.xcscheme │ │ │ └── particlePointerFont Release.xcscheme │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h └── vectorField_video │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ └── data │ │ └── fingers.mov │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ ├── src │ ├── main.cpp │ ├── ofApp.cpp │ ├── ofApp.h │ ├── particle.cpp │ ├── particle.h │ ├── vectorField.cpp │ └── vectorField.h │ ├── vectorField_video.cbp │ ├── vectorField_video.sln │ ├── vectorField_video.vcxproj │ ├── vectorField_video.vcxproj.filters │ ├── vectorField_video.vcxproj.user │ ├── vectorField_video.workspace │ └── vectorField_video.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── vectorField_video Debug.xcscheme │ └── vectorField_video Release.xcscheme ├── week7 ├── 1_particle_w_image │ ├── 1_particle_w_image.cbp │ ├── 1_particle_w_image.sln │ ├── 1_particle_w_image.vcxproj │ ├── 1_particle_w_image.vcxproj.filters │ ├── 1_particle_w_image.vcxproj.user │ ├── 1_particle_w_image.workspace │ ├── 1_particle_w_image.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 1_particle_w_image Debug.xcscheme │ │ │ └── 1_particle_w_image Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── spot.png │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h ├── 2_particle_particle_binning │ ├── 2_particle_particle_binning.cbp │ ├── 2_particle_particle_binning.sln │ ├── 2_particle_particle_binning.vcxproj │ ├── 2_particle_particle_binning.vcxproj.filters │ ├── 2_particle_particle_binning.vcxproj.user │ ├── 2_particle_particle_binning.workspace │ ├── 2_particle_particle_binning.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 2_particle_particle_binning Debug.xcscheme │ │ │ └── 2_particle_particle_binning Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── binner.cpp │ │ ├── binner.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h ├── 3_particle_particle_fast │ ├── 3_particle_particle_fast.cbp │ ├── 3_particle_particle_fast.sln │ ├── 3_particle_particle_fast.vcxproj │ ├── 3_particle_particle_fast.vcxproj.filters │ ├── 3_particle_particle_fast.vcxproj.user │ ├── 3_particle_particle_fast.workspace │ ├── 3_particle_particle_fast.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 3_particle_particle_fast Debug.xcscheme │ │ │ └── 3_particle_particle_fast Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h └── 3_particle_particle_video │ ├── 3_particle_particle_video.cbp │ ├── 3_particle_particle_video.sln │ ├── 3_particle_particle_video.vcxproj │ ├── 3_particle_particle_video.vcxproj.filters │ ├── 3_particle_particle_video.vcxproj.user │ ├── 3_particle_particle_video.workspace │ ├── 3_particle_particle_video.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── 3_particle_particle_video Debug.xcscheme │ │ └── 3_particle_particle_video Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ └── data │ │ └── fingers.mov │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ ├── binner.cpp │ ├── binner.h │ ├── main.cpp │ ├── ofApp.cpp │ ├── ofApp.h │ ├── particle.cpp │ └── particle.h ├── week8 ├── multiForces │ ├── Makefile │ ├── Project.xcconfig │ ├── WOOOOOOO.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── multiForces Debug.xcscheme │ │ │ └── multiForces Release.xcscheme │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── multiForces.cbp │ ├── multiForces.sln │ ├── multiForces.vcxproj │ ├── multiForces.vcxproj.filters │ ├── multiForces.vcxproj.user │ ├── multiForces.workspace │ ├── multiForces.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── multiForces Debug.xcscheme │ │ │ └── multiForces Release.xcscheme │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ ├── particle.h │ │ ├── spring.cpp │ │ └── spring.h ├── multiForces2 │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── multiForces2.cbp │ ├── multiForces2.sln │ ├── multiForces2.vcxproj │ ├── multiForces2.vcxproj.filters │ ├── multiForces2.vcxproj.user │ ├── multiForces2.workspace │ ├── multiForces2.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── multiForces2 Debug.xcscheme │ │ │ └── multiForces2 Release.xcscheme │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ ├── particle.h │ │ ├── spring.cpp │ │ └── spring.h ├── muscles │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── muscles.cbp │ ├── muscles.sln │ ├── muscles.vcxproj │ ├── muscles.vcxproj.filters │ ├── muscles.vcxproj.user │ ├── muscles.workspace │ ├── muscles.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── muscles Debug.xcscheme │ │ │ └── muscles Release.xcscheme │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ ├── particle.h │ │ ├── spring.cpp │ │ └── spring.h ├── shapes │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ │ └── data │ │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ ├── shapes.cbp │ ├── shapes.sln │ ├── shapes.vcxproj │ ├── shapes.vcxproj.filters │ ├── shapes.vcxproj.user │ ├── shapes.workspace │ ├── shapes.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── shapes Debug.xcscheme │ │ │ └── shapes Release.xcscheme │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ ├── particle.h │ │ ├── spring.cpp │ │ └── spring.h └── springs │ ├── Makefile │ ├── Project.xcconfig │ ├── bin │ └── data │ │ └── .gitignore │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ ├── springs.cbp │ ├── springs.sln │ ├── springs.vcxproj │ ├── springs.vcxproj.filters │ ├── springs.vcxproj.user │ ├── springs.workspace │ ├── springs.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── springs Debug.xcscheme │ │ └── springs Release.xcscheme │ └── src │ ├── main.cpp │ ├── ofApp.cpp │ ├── ofApp.h │ ├── particle.cpp │ ├── particle.h │ ├── spring.cpp │ └── spring.h └── week9 ├── controlPanel ├── Makefile ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── mono.ttf │ │ └── mySettings.xml ├── config.make ├── controlPanel.cbp ├── controlPanel.sln ├── controlPanel.vcxproj ├── controlPanel.vcxproj.filters ├── controlPanel.vcxproj.user ├── controlPanel.workspace ├── controlPanel.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── controlPanel Debug.xcscheme │ │ └── controlPanel Release.xcscheme ├── icon.rc ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── ofApp.cpp │ ├── ofApp.h │ └── ofxControlPanel │ ├── ofxAutoControlPanel.h │ └── src │ ├── guiBaseObject.cpp │ ├── guiBaseObject.h │ ├── guiCallback.cpp │ ├── guiCallback.h │ ├── guiCallbackValue.cpp │ ├── guiCallbackValue.h │ ├── guiColor.cpp │ ├── guiColor.h │ ├── guiCustomImpl.h │ ├── guiIncludes.h │ ├── guiTextBase.cpp │ ├── guiTextBase.h │ ├── guiType2DSlider.cpp │ ├── guiType2DSlider.h │ ├── guiTypeButtonSlider.cpp │ ├── guiTypeButtonSlider.h │ ├── guiTypeChartPlotter.cpp │ ├── guiTypeChartPlotter.h │ ├── guiTypeCustom.cpp │ ├── guiTypeCustom.h │ ├── guiTypeDrawable.cpp │ ├── guiTypeDrawable.h │ ├── guiTypeFileLister.cpp │ ├── guiTypeFileLister.h │ ├── guiTypeLabel.cpp │ ├── guiTypeLabel.h │ ├── guiTypeLogger.cpp │ ├── guiTypeLogger.h │ ├── guiTypeMultiToggle.cpp │ ├── guiTypeMultiToggle.h │ ├── guiTypePanel.cpp │ ├── guiTypePanel.h │ ├── guiTypeSlider.cpp │ ├── guiTypeSlider.h │ ├── guiTypeText.cpp │ ├── guiTypeText.h │ ├── guiTypeTextDropDown.cpp │ ├── guiTypeTextDropDown.h │ ├── guiTypeTextInput.cpp │ ├── guiTypeTextInput.h │ ├── guiTypeToggle.cpp │ ├── guiTypeToggle.h │ ├── guiTypeVairableLister.cpp │ ├── guiTypeVairableLister.h │ ├── guiTypeVideo.cpp │ ├── guiTypeVideo.h │ ├── guiValue.cpp │ ├── guiValue.h │ ├── guiVariablePointer.h │ ├── guiXmlValue.h │ ├── ofxControlPanel.cpp │ ├── ofxControlPanel.h │ ├── simpleColor.cpp │ ├── simpleColor.h │ ├── simpleFileLister.cpp │ ├── simpleFileLister.h │ ├── simpleLogger.cpp │ └── simpleLogger.h ├── flocking ├── Makefile ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ ├── mono.ttf │ │ └── mySettings.xml ├── config.make ├── flocking.cbp ├── flocking.sln ├── flocking.vcxproj ├── flocking.vcxproj.filters ├── flocking.vcxproj.user ├── flocking.workspace ├── flocking.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── flocking Debug.xcscheme │ │ └── flocking Release.xcscheme ├── icon.rc ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── ofApp.cpp │ ├── ofApp.h │ ├── ofxControlPanel │ ├── ofxAutoControlPanel.h │ └── src │ │ ├── guiBaseObject.cpp │ │ ├── guiBaseObject.h │ │ ├── guiCallback.cpp │ │ ├── guiCallback.h │ │ ├── guiCallbackValue.cpp │ │ ├── guiCallbackValue.h │ │ ├── guiColor.cpp │ │ ├── guiColor.h │ │ ├── guiCustomImpl.h │ │ ├── guiIncludes.h │ │ ├── guiTextBase.cpp │ │ ├── guiTextBase.h │ │ ├── guiType2DSlider.cpp │ │ ├── guiType2DSlider.h │ │ ├── guiTypeButtonSlider.cpp │ │ ├── guiTypeButtonSlider.h │ │ ├── guiTypeChartPlotter.cpp │ │ ├── guiTypeChartPlotter.h │ │ ├── guiTypeCustom.cpp │ │ ├── guiTypeCustom.h │ │ ├── guiTypeDrawable.cpp │ │ ├── guiTypeDrawable.h │ │ ├── guiTypeFileLister.cpp │ │ ├── guiTypeFileLister.h │ │ ├── guiTypeLabel.cpp │ │ ├── guiTypeLabel.h │ │ ├── guiTypeLogger.cpp │ │ ├── guiTypeLogger.h │ │ ├── guiTypeMultiToggle.cpp │ │ ├── guiTypeMultiToggle.h │ │ ├── guiTypePanel.cpp │ │ ├── guiTypePanel.h │ │ ├── guiTypeSlider.cpp │ │ ├── guiTypeSlider.h │ │ ├── guiTypeText.cpp │ │ ├── guiTypeText.h │ │ ├── guiTypeTextDropDown.cpp │ │ ├── guiTypeTextDropDown.h │ │ ├── guiTypeTextInput.cpp │ │ ├── guiTypeTextInput.h │ │ ├── guiTypeToggle.cpp │ │ ├── guiTypeToggle.h │ │ ├── guiTypeVairableLister.cpp │ │ ├── guiTypeVairableLister.h │ │ ├── guiTypeVideo.cpp │ │ ├── guiTypeVideo.h │ │ ├── guiValue.cpp │ │ ├── guiValue.h │ │ ├── guiVariablePointer.h │ │ ├── guiXmlValue.h │ │ ├── ofxControlPanel.cpp │ │ ├── ofxControlPanel.h │ │ ├── simpleColor.cpp │ │ ├── simpleColor.h │ │ ├── simpleFileLister.cpp │ │ ├── simpleFileLister.h │ │ ├── simpleLogger.cpp │ │ └── simpleLogger.h │ ├── particle.cpp │ └── particle.h ├── inheritance ├── Makefile ├── Project.xcconfig ├── bin │ └── data │ │ └── .gitignore ├── config.make ├── icon.rc ├── inheritance.cbp ├── inheritance.sln ├── inheritance.vcxproj ├── inheritance.vcxproj.filters ├── inheritance.vcxproj.user ├── inheritance.workspace ├── inheritance.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── inheritance Debug.xcscheme │ │ └── inheritance Release.xcscheme ├── openFrameworks-Info.plist └── src │ ├── circleParticle.cpp │ ├── circleParticle.h │ ├── main.cpp │ ├── ofApp.cpp │ ├── ofApp.h │ ├── particle.cpp │ ├── particle.h │ ├── squareParticle.cpp │ ├── squareParticle.h │ ├── triangleParticle.cpp │ └── triangleParticle.h ├── noise ├── Makefile ├── Project.xcconfig ├── bin │ └── data │ │ ├── mono.ttf │ │ └── mySettings.xml ├── config.make ├── icon.rc ├── noise.cbp ├── noise.sln ├── noise.vcxproj ├── noise.vcxproj.filters ├── noise.vcxproj.user ├── noise.workspace ├── noise.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── noise Debug.xcscheme │ │ └── noise Release.xcscheme ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── ofApp.cpp │ ├── ofApp.h │ ├── ofxControlPanel │ ├── ofxAutoControlPanel.h │ └── src │ │ ├── guiBaseObject.cpp │ │ ├── guiBaseObject.h │ │ ├── guiCallback.cpp │ │ ├── guiCallback.h │ │ ├── guiCallbackValue.cpp │ │ ├── guiCallbackValue.h │ │ ├── guiColor.cpp │ │ ├── guiColor.h │ │ ├── guiCustomImpl.h │ │ ├── guiIncludes.h │ │ ├── guiTextBase.cpp │ │ ├── guiTextBase.h │ │ ├── guiType2DSlider.cpp │ │ ├── guiType2DSlider.h │ │ ├── guiTypeButtonSlider.cpp │ │ ├── guiTypeButtonSlider.h │ │ ├── guiTypeChartPlotter.cpp │ │ ├── guiTypeChartPlotter.h │ │ ├── guiTypeCustom.cpp │ │ ├── guiTypeCustom.h │ │ ├── guiTypeDrawable.cpp │ │ ├── guiTypeDrawable.h │ │ ├── guiTypeFileLister.cpp │ │ ├── guiTypeFileLister.h │ │ ├── guiTypeLabel.cpp │ │ ├── guiTypeLabel.h │ │ ├── guiTypeLogger.cpp │ │ ├── guiTypeLogger.h │ │ ├── guiTypeMultiToggle.cpp │ │ ├── guiTypeMultiToggle.h │ │ ├── guiTypePanel.cpp │ │ ├── guiTypePanel.h │ │ ├── guiTypeSlider.cpp │ │ ├── guiTypeSlider.h │ │ ├── guiTypeText.cpp │ │ ├── guiTypeText.h │ │ ├── guiTypeTextDropDown.cpp │ │ ├── guiTypeTextDropDown.h │ │ ├── guiTypeTextInput.cpp │ │ ├── guiTypeTextInput.h │ │ ├── guiTypeToggle.cpp │ │ ├── guiTypeToggle.h │ │ ├── guiTypeVairableLister.cpp │ │ ├── guiTypeVairableLister.h │ │ ├── guiTypeVideo.cpp │ │ ├── guiTypeVideo.h │ │ ├── guiValue.cpp │ │ ├── guiValue.h │ │ ├── guiVariablePointer.h │ │ ├── guiXmlValue.h │ │ ├── ofxControlPanel.cpp │ │ ├── ofxControlPanel.h │ │ ├── simpleColor.cpp │ │ ├── simpleColor.h │ │ ├── simpleFileLister.cpp │ │ ├── simpleFileLister.h │ │ ├── simpleLogger.cpp │ │ └── simpleLogger.h │ ├── particle.cpp │ └── particle.h ├── noiseParticles ├── Makefile ├── Project.xcconfig ├── bin │ └── data │ │ ├── mono.ttf │ │ └── mySettings.xml ├── config.make ├── icon.rc ├── noiseParticles.cbp ├── noiseParticles.sln ├── noiseParticles.vcxproj ├── noiseParticles.vcxproj.filters ├── noiseParticles.vcxproj.user ├── noiseParticles.workspace ├── noiseParticles.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── noiseParticles Debug.xcscheme │ │ └── noiseParticles Release.xcscheme ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── noiseField.cpp │ ├── noiseField.h │ ├── ofApp.cpp │ ├── ofApp.h │ ├── particle.cpp │ └── particle.h └── scene ├── .sln ├── .vcproj ├── .vcproj.user ├── Makefile ├── Project.xcconfig ├── bin └── data │ └── frog-1.jpg ├── config.make ├── icon.rc ├── openFrameworks-Info.plist ├── scene.cbp ├── scene.sln ├── scene.vcxproj ├── scene.vcxproj.filters ├── scene.vcxproj.user ├── scene.workspace ├── scene.xcodeproj ├── project.pbxproj └── xcshareddata │ └── xcschemes │ ├── scene Debug.xcscheme │ └── scene Release.xcscheme └── src ├── baseScene.cpp ├── baseScene.h ├── circleScene.cpp ├── circleScene.h ├── imageScene.cpp ├── imageScene.h ├── main.cpp ├── ofApp.cpp ├── ofApp.h ├── squareScene.cpp └── squareScene.h /other/vectorField_wParticles/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /other/vectorField_wParticles/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/other/vectorField_wParticles/bin/data/.gitignore -------------------------------------------------------------------------------- /other/vectorField_wParticles/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /other/vectorField_wParticles/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /other/vectorField_wParticles/vectorField_wParticles.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week1/0_rectangleClass/0_rectangleClass.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week1/0_rectangleClass/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week1/0_rectangleClass/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/0_rectangleClass/bin/data/.gitignore -------------------------------------------------------------------------------- /week1/0_rectangleClass/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week1/0_rectangleClass/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 400,200, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week1/0_rectangleClass/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | #include "ofMain.h" 5 | #include "rectangle.h" 6 | 7 | class ofApp : public ofSimpleApp{ 8 | 9 | public: 10 | 11 | void setup(); 12 | void update(); 13 | void draw(); 14 | 15 | void keyPressed (int key); 16 | void keyReleased (int key); 17 | 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(); 22 | 23 | rectangle myRectangle; 24 | }; 25 | 26 | #endif 27 | 28 | -------------------------------------------------------------------------------- /week1/0_rectangleClass/src/rectangle.cpp: -------------------------------------------------------------------------------- 1 | #include "rectangle.h" 2 | 3 | 4 | //------------------------------------------------------------------ 5 | rectangle::rectangle(){ 6 | 7 | } 8 | 9 | void rectangle::update(){ 10 | 11 | pos.x = pos.x + ofRandom(-1,1); 12 | } 13 | 14 | //------------------------------------------------------------------ 15 | void rectangle::draw() { 16 | ofFill(); 17 | ofSetRectMode(OF_RECTMODE_CENTER); // center around the position 18 | ofSetColor(198,246,55); 19 | ofRect(pos.x, pos.y, 20,20); 20 | } 21 | -------------------------------------------------------------------------------- /week1/0_rectangleClass/src/rectangle.h: -------------------------------------------------------------------------------- 1 | #ifndef RECTANGLE_H 2 | #define RECTANGLE_H 3 | 4 | #include "ofMain.h" 5 | 6 | class rectangle { 7 | 8 | public: 9 | 10 | rectangle(); 11 | 12 | void update(); 13 | void draw(); 14 | 15 | ofPoint pos; 16 | 17 | 18 | }; 19 | 20 | #endif // RECTANGLE_H 21 | -------------------------------------------------------------------------------- /week1/1_rectangleInterpolate/1_rectangleInterpolate.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week1/1_rectangleInterpolate/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week1/1_rectangleInterpolate/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/1_rectangleInterpolate/bin/data/.gitignore -------------------------------------------------------------------------------- /week1/1_rectangleInterpolate/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week1/1_rectangleInterpolate/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 600,600, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week1/1_rectangleInterpolate/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | #include "ofMain.h" 5 | #include "rectangle.h" 6 | 7 | class ofApp : public ofSimpleApp{ 8 | 9 | public: 10 | 11 | void setup(); 12 | void update(); 13 | void draw(); 14 | 15 | void keyPressed (int key); 16 | void keyReleased (int key); 17 | 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(); 22 | 23 | rectangle myRectangle; 24 | 25 | float pct; 26 | 27 | 28 | }; 29 | 30 | #endif 31 | 32 | -------------------------------------------------------------------------------- /week1/1_rectangleInterpolate/src/rectangle.h: -------------------------------------------------------------------------------- 1 | #ifndef RECTANGLE_H 2 | #define RECTANGLE_H 3 | 4 | #include "ofMain.h" 5 | 6 | class rectangle { 7 | 8 | public: 9 | 10 | rectangle(); 11 | 12 | void draw(); 13 | void interpolateByPct(float myPct); 14 | 15 | ofPoint pos; 16 | 17 | ofPoint posa; 18 | ofPoint posb; 19 | 20 | float pct; // what pct are we between "a" and "b" 21 | 22 | 23 | 24 | }; 25 | 26 | #endif // RECTANGLE_H 27 | -------------------------------------------------------------------------------- /week1/2_rectangleInterpolate2/2_rectangleInterpolate2.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week1/2_rectangleInterpolate2/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week1/2_rectangleInterpolate2/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/2_rectangleInterpolate2/bin/data/.gitignore -------------------------------------------------------------------------------- /week1/2_rectangleInterpolate2/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week1/2_rectangleInterpolate2/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 600,600, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week1/2_rectangleInterpolate2/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | #include "ofMain.h" 5 | #include "rectangle.h" 6 | 7 | class ofApp : public ofSimpleApp{ 8 | 9 | public: 10 | 11 | void setup(); 12 | void update(); 13 | void draw(); 14 | 15 | void keyPressed (int key); 16 | void keyReleased (int key); 17 | 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(); 22 | 23 | rectangle myRectangle; 24 | float pct; 25 | 26 | }; 27 | 28 | #endif 29 | 30 | -------------------------------------------------------------------------------- /week1/2_rectangleInterpolate2/src/rectangle.h: -------------------------------------------------------------------------------- 1 | #ifndef RECTANGLE_H 2 | #define RECTANGLE_H 3 | 4 | #include "ofMain.h" 5 | 6 | class rectangle { 7 | 8 | public: 9 | 10 | rectangle(); 11 | 12 | void draw(); 13 | void interpolateByPct(float myPct); 14 | 15 | ofPoint pos; 16 | ofPoint posa; 17 | ofPoint posb; 18 | float pct; // what pct are we between "a" and "b" 19 | 20 | 21 | float radius; 22 | 23 | float radiusa; 24 | float radiusb; 25 | 26 | 27 | }; 28 | 29 | #endif // RECTANGLE_H 30 | -------------------------------------------------------------------------------- /week1/3_rectangleInterpolatePowf/3_rectangleInterpolatePowf.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week1/3_rectangleInterpolatePowf/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week1/3_rectangleInterpolatePowf/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/3_rectangleInterpolatePowf/bin/data/.gitignore -------------------------------------------------------------------------------- /week1/3_rectangleInterpolatePowf/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week1/3_rectangleInterpolatePowf/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 400,200, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week1/3_rectangleInterpolatePowf/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | #include "ofMain.h" 5 | #include "rectangle.h" 6 | 7 | class ofApp : public ofSimpleApp{ 8 | 9 | public: 10 | 11 | void setup(); 12 | void update(); 13 | void draw(); 14 | 15 | void keyPressed (int key); 16 | void keyReleased (int key); 17 | 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(); 22 | 23 | rectangle myRectangle; 24 | float pct; 25 | 26 | }; 27 | 28 | #endif 29 | 30 | -------------------------------------------------------------------------------- /week1/3_rectangleInterpolatePowf/src/rectangle.h: -------------------------------------------------------------------------------- 1 | #ifndef RECTANGLE_H 2 | #define RECTANGLE_H 3 | 4 | #include "ofMain.h" 5 | 6 | class rectangle { 7 | 8 | public: 9 | 10 | rectangle(); 11 | 12 | void draw(); 13 | void interpolateByPct(float myPct); 14 | 15 | ofPoint pos; 16 | ofPoint posa; 17 | ofPoint posb; 18 | float pct; // what pct are we between "a" and "b" 19 | float shaper; 20 | 21 | 22 | 23 | }; 24 | 25 | #endif // RECTANGLE_H 26 | -------------------------------------------------------------------------------- /week1/4_rectangleInterpolatePowfMultiple/4_rectangleInterpolatePowfMultiple.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week1/4_rectangleInterpolatePowfMultiple/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week1/4_rectangleInterpolatePowfMultiple/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/4_rectangleInterpolatePowfMultiple/bin/data/.gitignore -------------------------------------------------------------------------------- /week1/4_rectangleInterpolatePowfMultiple/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week1/4_rectangleInterpolatePowfMultiple/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 400,200, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week1/4_rectangleInterpolatePowfMultiple/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | #include "ofMain.h" 5 | #include "rectangle.h" 6 | 7 | class ofApp : public ofSimpleApp{ 8 | 9 | public: 10 | 11 | void setup(); 12 | void update(); 13 | void draw(); 14 | 15 | void keyPressed (int key); 16 | void keyReleased (int key); 17 | 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(); 22 | 23 | rectangle myRectangles[10]; 24 | float pct; 25 | 26 | }; 27 | 28 | #endif 29 | 30 | -------------------------------------------------------------------------------- /week1/4_rectangleInterpolatePowfMultiple/src/rectangle.h: -------------------------------------------------------------------------------- 1 | #ifndef RECTANGLE_H 2 | #define RECTANGLE_H 3 | 4 | #include "ofMain.h" 5 | 6 | class rectangle { 7 | 8 | public: 9 | 10 | rectangle(); 11 | 12 | void draw(); 13 | void interpolateByPct(float myPct); 14 | 15 | ofPoint pos; 16 | ofPoint posa; 17 | ofPoint posb; 18 | float pct; // what pct are we between "a" and "b" 19 | float shaper; 20 | 21 | 22 | 23 | }; 24 | 25 | #endif // RECTANGLE_H 26 | -------------------------------------------------------------------------------- /week1/5_rectangleXeno/5_rectangleXeno.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week1/5_rectangleXeno/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week1/5_rectangleXeno/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/5_rectangleXeno/bin/data/.gitignore -------------------------------------------------------------------------------- /week1/5_rectangleXeno/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week1/5_rectangleXeno/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 400,200, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week1/5_rectangleXeno/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | #include "ofMain.h" 5 | #include "rectangle.h" 6 | 7 | class ofApp : public ofSimpleApp{ 8 | 9 | public: 10 | 11 | void setup(); 12 | void update(); 13 | void draw(); 14 | 15 | void keyPressed (int key); 16 | void keyReleased (int key); 17 | 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(); 22 | 23 | rectangle myRectangle; 24 | }; 25 | 26 | #endif 27 | 28 | -------------------------------------------------------------------------------- /week1/5_rectangleXeno/src/rectangle.h: -------------------------------------------------------------------------------- 1 | #ifndef RECTANGLE_H 2 | #define RECTANGLE_H 3 | 4 | #include "ofMain.h" 5 | 6 | class rectangle { 7 | 8 | public: 9 | 10 | rectangle(); 11 | 12 | void draw(); 13 | void xenoToPoint(float catchX, float catchY); 14 | 15 | ofPoint pos; 16 | float catchUpSpeed; // take this pct of where I want to be, and 1-catchUpSpeed of my pos 17 | 18 | 19 | }; 20 | 21 | #endif // RECTANGLE_H 22 | -------------------------------------------------------------------------------- /week1/circleDistancePct/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week1/circleDistancePct/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/circleDistancePct/addons.make -------------------------------------------------------------------------------- /week1/circleDistancePct/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/circleDistancePct/bin/data/.gitkeep -------------------------------------------------------------------------------- /week1/circleDistancePct/circleDistancePct.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week1/circleDistancePct/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week1/circleDistancePct/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week1/circleDistancePct/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class ofApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | }; 23 | -------------------------------------------------------------------------------- /week1/drawingLinearStretch/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week1/drawingLinearStretch/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/drawingLinearStretch/addons.make -------------------------------------------------------------------------------- /week1/drawingLinearStretch/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/drawingLinearStretch/bin/data/.gitkeep -------------------------------------------------------------------------------- /week1/drawingLinearStretch/drawingLinearStretch.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week1/drawingLinearStretch/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week1/drawingLinearStretch/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week1/drawingLinearStretch/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class ofApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | }; 23 | -------------------------------------------------------------------------------- /week1/linearMapping/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week1/linearMapping/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/linearMapping/addons.make -------------------------------------------------------------------------------- /week1/linearMapping/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/linearMapping/bin/data/.gitkeep -------------------------------------------------------------------------------- /week1/linearMapping/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week1/linearMapping/linearMapping.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week1/linearMapping/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week1/linearMapping/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class ofApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | }; 23 | -------------------------------------------------------------------------------- /week1/videoDrawing/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week1/videoDrawing/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/videoDrawing/addons.make -------------------------------------------------------------------------------- /week1/videoDrawing/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/videoDrawing/bin/data/.gitkeep -------------------------------------------------------------------------------- /week1/videoDrawing/bin/data/fingers.mov: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week1/videoDrawing/bin/data/fingers.mov -------------------------------------------------------------------------------- /week1/videoDrawing/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week1/videoDrawing/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week1/videoDrawing/videoDrawing.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2/0_sinExample/.vcproj.user: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 15 | 16 | 19 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /week2/0_sinExample/0_sinExample.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2/0_sinExample/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week2/0_sinExample/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week2/0_sinExample/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2/0_sinExample/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | class ofApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /week2/1_sinExample_phase/1_sinExample_phase.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2/1_sinExample_phase/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week2/1_sinExample_phase/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/1_sinExample_phase/bin/data/.gitignore -------------------------------------------------------------------------------- /week2/1_sinExample_phase/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week2/1_sinExample_phase/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2/1_sinExample_phase/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | class ofApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /week2/2_sinExample3_AM/2_sinExample3_AM.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2/2_sinExample3_AM/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week2/2_sinExample3_AM/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/2_sinExample3_AM/bin/data/.gitignore -------------------------------------------------------------------------------- /week2/2_sinExample3_AM/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week2/2_sinExample3_AM/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2/2_sinExample3_AM/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | class ofApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /week2/3_sinExample_circle/3_sinExample_circle.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2/3_sinExample_circle/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week2/3_sinExample_circle/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/3_sinExample_circle/bin/data/.gitignore -------------------------------------------------------------------------------- /week2/3_sinExample_circle/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week2/3_sinExample_circle/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2/3_sinExample_circle/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | class ofApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /week2/4_sinExample_pointRecorder/4_sinExample_pointRecorder.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2/4_sinExample_pointRecorder/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week2/4_sinExample_pointRecorder/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/4_sinExample_pointRecorder/bin/data/.gitignore -------------------------------------------------------------------------------- /week2/4_sinExample_pointRecorder/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week2/4_sinExample_pointRecorder/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2/4_sinExample_pointRecorder/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | class ofApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | 22 | 23 | 24 | vector < ofPoint > points; 25 | 26 | }; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /week2/5_sinExample_multiCircles/5_sinExample_multiCircles.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2/5_sinExample_multiCircles/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week2/5_sinExample_multiCircles/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/5_sinExample_multiCircles/bin/data/.gitignore -------------------------------------------------------------------------------- /week2/5_sinExample_multiCircles/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week2/5_sinExample_multiCircles/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2/5_sinExample_multiCircles/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | class ofApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | 22 | }; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /week2/6_sinExample_circlePlusPath/6_sinExample_circlePlusPath.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2/6_sinExample_circlePlusPath/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week2/6_sinExample_circlePlusPath/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/6_sinExample_circlePlusPath/bin/data/.gitignore -------------------------------------------------------------------------------- /week2/6_sinExample_circlePlusPath/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week2/6_sinExample_circlePlusPath/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2/7_sinExample_circlePlusPath_lissajus/7_sinExample_circlePlusPath_lissajus.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2/7_sinExample_circlePlusPath_lissajus/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week2/7_sinExample_circlePlusPath_lissajus/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/7_sinExample_circlePlusPath_lissajus/bin/data/.gitignore -------------------------------------------------------------------------------- /week2/7_sinExample_circlePlusPath_lissajus/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week2/7_sinExample_circlePlusPath_lissajus/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2/7_sinExample_circlePlusPath_lissajus/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | class ofApp : public ofBaseApp{ 8 | 9 | public: 10 | void setup(); 11 | void update(); 12 | void draw(); 13 | 14 | void keyPressed (int key); 15 | void keyReleased(int key); 16 | void mouseMoved(int x, int y ); 17 | void mouseDragged(int x, int y, int button); 18 | void mousePressed(int x, int y, int button); 19 | void mouseReleased(int x, int y, int button); 20 | void windowResized(int w, int h); 21 | 22 | vector < ofPoint > points; 23 | 24 | 25 | 26 | 27 | }; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /week2/8_sinExample_atan/8_sinExample_atan.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2/8_sinExample_atan/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week2/8_sinExample_atan/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/8_sinExample_atan/bin/data/.gitignore -------------------------------------------------------------------------------- /week2/8_sinExample_atan/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week2/8_sinExample_atan/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 400,200, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2/8_sinExample_atan/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | #include "ofMain.h" 5 | #include "rectangle.h" 6 | 7 | class ofApp : public ofSimpleApp{ 8 | 9 | public: 10 | 11 | void setup(); 12 | void update(); 13 | void draw(); 14 | 15 | void keyPressed (int key); 16 | void keyReleased (int key); 17 | 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(); 22 | 23 | rectangle myRectangle; 24 | }; 25 | 26 | #endif 27 | 28 | -------------------------------------------------------------------------------- /week2/8_sinExample_atan/src/rectangle.h: -------------------------------------------------------------------------------- 1 | #ifndef RECTANGLE_H 2 | #define RECTANGLE_H 3 | 4 | #include "ofMain.h" 5 | 6 | class rectangle { 7 | 8 | public: 9 | 10 | rectangle(); 11 | 12 | void draw(); 13 | void xenoToPoint(float catchX, float catchY); 14 | 15 | ofPoint pos; 16 | ofPoint prevPos; 17 | 18 | float angle; 19 | 20 | 21 | float catchUpSpeed; // take this pct of where I want to be, and 1-catchUpSpeed of my pos 22 | 23 | 24 | 25 | 26 | 27 | }; 28 | 29 | #endif // RECTANGLE_H 30 | -------------------------------------------------------------------------------- /week2/angleGrid/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week2/angleGrid/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/angleGrid/addons.make -------------------------------------------------------------------------------- /week2/angleGrid/angleGrid.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2/angleGrid/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/angleGrid/bin/data/.gitkeep -------------------------------------------------------------------------------- /week2/angleGrid/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week2/angleGrid/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2/angleGrid/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class ofApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | }; 23 | -------------------------------------------------------------------------------- /week2/angleSmooth/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week2/angleSmooth/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/angleSmooth/addons.make -------------------------------------------------------------------------------- /week2/angleSmooth/angleSmooth.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2/angleSmooth/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/angleSmooth/bin/data/.gitkeep -------------------------------------------------------------------------------- /week2/angleSmooth/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week2/angleSmooth/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week2/angleStrokeWidth/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week2/angleStrokeWidth/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/angleStrokeWidth/addons.make -------------------------------------------------------------------------------- /week2/angleStrokeWidth/angleStrokeWidth.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week2/angleStrokeWidth/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week2/angleStrokeWidth/bin/data/.gitkeep -------------------------------------------------------------------------------- /week2/angleStrokeWidth/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week2/angleStrokeWidth/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3/10_noise/.vcproj.user: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 15 | 16 | 19 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /week3/10_noise/10_noise.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3/10_noise/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week3/10_noise/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week3/10_noise/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3/10_noise/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class ofApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | float position; 23 | 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week3/11_noise/.vcproj.user: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 15 | 16 | 19 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /week3/11_noise/11_noise.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3/11_noise/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week3/11_noise/bin/data/sunset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week3/11_noise/bin/data/sunset.png -------------------------------------------------------------------------------- /week3/11_noise/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week3/11_noise/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3/1_drawingWithTime_1/1_drawingWithTime_1.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3/1_drawingWithTime_1/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week3/1_drawingWithTime_1/bin/data/drawbar_c4_a.aif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week3/1_drawingWithTime_1/bin/data/drawbar_c4_a.aif -------------------------------------------------------------------------------- /week3/1_drawingWithTime_1/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week3/1_drawingWithTime_1/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3/1_drawingWithTime_1/src/timePoint.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * timePoint.cpp 3 | * drawingWithTime 4 | * 5 | * Created by zachary lieberman on 9/21/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "timePoint.h" 11 | 12 | -------------------------------------------------------------------------------- /week3/1_drawingWithTime_1/src/timePoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | * timePoint.h 3 | * drawingWithTime 4 | * 5 | * Created by zachary lieberman on 9/21/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | 11 | #ifndef TIME_POINT_H 12 | #define TIME_POINT_H 13 | 14 | #include "ofMain.h" 15 | 16 | class timePoint { 17 | 18 | public: 19 | 20 | float x; 21 | float y; 22 | float t; 23 | 24 | }; 25 | 26 | 27 | 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /week3/2_drawingWithTime_2/2_drawingWithTime_2.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3/2_drawingWithTime_2/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week3/2_drawingWithTime_2/bin/data/drawbar_c4_a.aif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week3/2_drawingWithTime_2/bin/data/drawbar_c4_a.aif -------------------------------------------------------------------------------- /week3/2_drawingWithTime_2/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week3/2_drawingWithTime_2/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3/2_drawingWithTime_2/src/timePoint.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * timePoint.cpp 3 | * drawingWithTime 4 | * 5 | * Created by zachary lieberman on 9/21/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "timePoint.h" 11 | 12 | -------------------------------------------------------------------------------- /week3/2_drawingWithTime_2/src/timePoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | * timePoint.h 3 | * drawingWithTime 4 | * 5 | * Created by zachary lieberman on 9/21/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | 11 | #ifndef TIME_POINT_H 12 | #define TIME_POINT_H 13 | 14 | #include "ofMain.h" 15 | 16 | class timePoint { 17 | 18 | public: 19 | 20 | float x; 21 | float y; 22 | float t; 23 | 24 | 25 | }; 26 | 27 | 28 | 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /week3/3_drawingWithTime_3/3_drawingWithTime_3.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3/3_drawingWithTime_3/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week3/3_drawingWithTime_3/bin/data/drawbar_c4_a.aif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week3/3_drawingWithTime_3/bin/data/drawbar_c4_a.aif -------------------------------------------------------------------------------- /week3/3_drawingWithTime_3/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week3/3_drawingWithTime_3/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3/3_drawingWithTime_3/src/timePoint.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * timePoint.cpp 3 | * drawingWithTime 4 | * 5 | * Created by zachary lieberman on 9/21/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "timePoint.h" 11 | 12 | -------------------------------------------------------------------------------- /week3/3_drawingWithTime_3/src/timePoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | * timePoint.h 3 | * drawingWithTime 4 | * 5 | * Created by zachary lieberman on 9/21/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | 11 | #ifndef TIME_POINT_H 12 | #define TIME_POINT_H 13 | 14 | #include "ofMain.h" 15 | 16 | class timePoint { 17 | 18 | public: 19 | 20 | float x; 21 | float y; 22 | float t; 23 | 24 | 25 | }; 26 | 27 | 28 | 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /week3/4_drawingWithTime_4/4_drawingWithTime_4.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3/4_drawingWithTime_4/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week3/4_drawingWithTime_4/bin/data/drawbar_c4_a.aif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week3/4_drawingWithTime_4/bin/data/drawbar_c4_a.aif -------------------------------------------------------------------------------- /week3/4_drawingWithTime_4/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week3/4_drawingWithTime_4/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3/4_drawingWithTime_4/src/timePoint.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * timePoint.cpp 3 | * drawingWithTime 4 | * 5 | * Created by zachary lieberman on 9/21/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "timePoint.h" 11 | 12 | -------------------------------------------------------------------------------- /week3/4_drawingWithTime_4/src/timePoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | * timePoint.h 3 | * drawingWithTime 4 | * 5 | * Created by zachary lieberman on 9/21/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | 11 | #ifndef TIME_POINT_H 12 | #define TIME_POINT_H 13 | 14 | #include "ofMain.h" 15 | 16 | class timePoint { 17 | 18 | public: 19 | 20 | float x; 21 | float y; 22 | float t; 23 | 24 | 25 | }; 26 | 27 | 28 | 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /week3/5_drawingWithTime_5/5_drawingWithTime_5.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3/5_drawingWithTime_5/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week3/5_drawingWithTime_5/bin/data/drawbar_c4_a.aif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week3/5_drawingWithTime_5/bin/data/drawbar_c4_a.aif -------------------------------------------------------------------------------- /week3/5_drawingWithTime_5/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week3/5_drawingWithTime_5/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3/5_drawingWithTime_5/src/timePoint.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * timePoint.cpp 3 | * drawingWithTime 4 | * 5 | * Created by zachary lieberman on 9/21/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "timePoint.h" 11 | 12 | -------------------------------------------------------------------------------- /week3/5_drawingWithTime_5/src/timePoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | * timePoint.h 3 | * drawingWithTime 4 | * 5 | * Created by zachary lieberman on 9/21/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | 11 | #ifndef TIME_POINT_H 12 | #define TIME_POINT_H 13 | 14 | #include "ofMain.h" 15 | 16 | class timePoint { 17 | 18 | public: 19 | 20 | float x; 21 | float y; 22 | float t; 23 | 24 | 25 | }; 26 | 27 | 28 | 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /week3/6_drawingWithTime_6/6_drawingWithTime_6.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3/6_drawingWithTime_6/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week3/6_drawingWithTime_6/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week3/6_drawingWithTime_6/bin/data/.gitignore -------------------------------------------------------------------------------- /week3/6_drawingWithTime_6/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week3/6_drawingWithTime_6/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3/6_drawingWithTime_6/src/timePoint.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * timePoint.cpp 3 | * drawingWithTime 4 | * 5 | * Created by zachary lieberman on 9/21/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "timePoint.h" 11 | 12 | -------------------------------------------------------------------------------- /week3/6_drawingWithTime_6/src/timePoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | * timePoint.h 3 | * drawingWithTime 4 | * 5 | * Created by zachary lieberman on 9/21/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | 11 | #ifndef TIME_POINT_H 12 | #define TIME_POINT_H 13 | 14 | #include "ofMain.h" 15 | 16 | class timePoint { 17 | 18 | public: 19 | 20 | float x; 21 | float y; 22 | float t; 23 | 24 | 25 | }; 26 | 27 | 28 | 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /week3/9_noise/.vcproj.user: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 15 | 16 | 19 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /week3/9_noise/9_noise.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3/9_noise/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week3/9_noise/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week3/9_noise/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week3/9_noise/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | 5 | class ofApp : public ofBaseApp{ 6 | 7 | public: 8 | void setup(); 9 | void update(); 10 | void draw(); 11 | 12 | void keyPressed (int key); 13 | void keyReleased(int key); 14 | void mouseMoved(int x, int y ); 15 | void mouseDragged(int x, int y, int button); 16 | void mousePressed(int x, int y, int button); 17 | void mouseReleased(int x, int y, int button); 18 | void windowResized(int w, int h); 19 | void dragEvent(ofDragInfo dragInfo); 20 | void gotMessage(ofMessage msg); 21 | 22 | float position; 23 | 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week3/multipleDrawings/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week3/multipleDrawings/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week3/multipleDrawings/addons.make -------------------------------------------------------------------------------- /week3/multipleDrawings/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week3/multipleDrawings/bin/data/.gitkeep -------------------------------------------------------------------------------- /week3/multipleDrawings/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week3/multipleDrawings/multipleDrawings.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week3/multipleDrawings/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week4/bounceOffTheWalls/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week4/bounceOffTheWalls/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week4/bounceOffTheWalls/bin/data/.gitignore -------------------------------------------------------------------------------- /week4/bounceOffTheWalls/bounceOffTheWalls.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week4/bounceOffTheWalls/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week4/bounceOffTheWalls/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week4/drawingWithParticles/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week4/drawingWithParticles/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week4/drawingWithParticles/bin/data/.gitignore -------------------------------------------------------------------------------- /week4/drawingWithParticles/drawingWithParticles.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week4/drawingWithParticles/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week4/drawingWithParticles/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week4/drawingWithParticles2/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week4/drawingWithParticles2/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week4/drawingWithParticles2/bin/data/.gitignore -------------------------------------------------------------------------------- /week4/drawingWithParticles2/drawingWithParticles2.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week4/drawingWithParticles2/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week4/drawingWithParticles2/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week4/multiParticles/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week4/multiParticles/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week4/multiParticles/bin/data/.gitignore -------------------------------------------------------------------------------- /week4/multiParticles/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week4/multiParticles/multiParticles.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week4/multiParticles/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week4/multiParticles/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | 7 | #include "particle.h" 8 | 9 | class ofApp : public ofSimpleApp{ 10 | 11 | public: 12 | 13 | void setup(); 14 | void update(); 15 | void draw(); 16 | 17 | void keyPressed (int key); 18 | void keyReleased (int key); 19 | 20 | void mouseMoved(int x, int y ); 21 | void mouseDragged(int x, int y, int button); 22 | void mousePressed(int x, int y, int button); 23 | void mouseReleased(); 24 | 25 | // let's make a vector of them 26 | vector particles; 27 | 28 | 29 | }; 30 | 31 | #endif 32 | 33 | -------------------------------------------------------------------------------- /week4/singleParticle/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week4/singleParticle/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week4/singleParticle/bin/data/.gitignore -------------------------------------------------------------------------------- /week4/singleParticle/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week4/singleParticle/singleParticle.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week4/singleParticle/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week4/singleParticle/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | #include "particle.h" 7 | 8 | class ofApp : public ofSimpleApp{ 9 | 10 | public: 11 | 12 | void setup(); 13 | void update(); 14 | void draw(); 15 | 16 | void keyPressed (int key); 17 | void keyReleased (int key); 18 | 19 | void mouseMoved(int x, int y ); 20 | void mouseDragged(int x, int y, int button); 21 | void mousePressed(int x, int y, int button); 22 | void mouseReleased(); 23 | 24 | particle p; 25 | 26 | 27 | }; 28 | 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /week5/attractionRepulsion/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week5/attractionRepulsion/attractionRepulsion.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week5/attractionRepulsion/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week5/attractionRepulsion/bin/data/.gitignore -------------------------------------------------------------------------------- /week5/attractionRepulsion/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week5/attractionRepulsion/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week5/attractionRepulsion2/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week5/attractionRepulsion2/attractionRepulsion.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week5/attractionRepulsion2/attractionRepulsion2.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week5/attractionRepulsion2/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week5/attractionRepulsion2/bin/data/.gitignore -------------------------------------------------------------------------------- /week5/attractionRepulsion2/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week5/attractionRepulsion2/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week5/timerExample/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week5/timerExample/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week5/timerExample/addons.make -------------------------------------------------------------------------------- /week5/timerExample/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week5/timerExample/bin/data/.gitkeep -------------------------------------------------------------------------------- /week5/timerExample/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week5/timerExample/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week5/timerExample/timerExample.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week5/vectorField/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week5/vectorField/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week5/vectorField/bin/data/.gitignore -------------------------------------------------------------------------------- /week5/vectorField/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week5/vectorField/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week5/vectorField/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | #include "vectorField.h" 7 | 8 | class ofApp : public ofSimpleApp{ 9 | 10 | public: 11 | 12 | void setup(); 13 | void update(); 14 | void draw(); 15 | 16 | void keyPressed (int key); 17 | void keyReleased (int key); 18 | 19 | void mouseMoved(int x, int y ); 20 | void mouseDragged(int x, int y, int button); 21 | void mousePressed(int x, int y, int button); 22 | void mouseReleased(); 23 | 24 | vectorField VF; 25 | 26 | }; 27 | 28 | #endif 29 | 30 | -------------------------------------------------------------------------------- /week5/vectorField/vectorField.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week5/vectorField_drawings/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week5/vectorField_drawings/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week5/vectorField_drawings/bin/data/.gitignore -------------------------------------------------------------------------------- /week5/vectorField_drawings/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week5/vectorField_drawings/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week5/vectorField_drawings/vectorField_drawings.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week5/vectorField_wParticles/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week5/vectorField_wParticles/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week5/vectorField_wParticles/bin/data/.gitignore -------------------------------------------------------------------------------- /week5/vectorField_wParticles/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week5/vectorField_wParticles/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week5/vectorField_wParticles/vectorField_wParticles.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week6/1_particle_particle/1_particle_particle.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week6/1_particle_particle/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week6/1_particle_particle/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week6/1_particle_particle/bin/data/.gitignore -------------------------------------------------------------------------------- /week6/1_particle_particle/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week6/1_particle_particle/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window,1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week6/2_particle_particle_manyAreSlow/2_particle_particle_manyAreSlow.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week6/2_particle_particle_manyAreSlow/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week6/2_particle_particle_manyAreSlow/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week6/2_particle_particle_manyAreSlow/bin/data/.gitignore -------------------------------------------------------------------------------- /week6/2_particle_particle_manyAreSlow/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week6/2_particle_particle_manyAreSlow/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window,1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week6/3_mixing_forces/3_mixing_forces.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week6/3_mixing_forces/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week6/3_mixing_forces/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week6/3_mixing_forces/bin/data/.gitignore -------------------------------------------------------------------------------- /week6/3_mixing_forces/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week6/3_mixing_forces/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window,1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week6/particlePointer/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week6/particlePointer/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week6/particlePointer/bin/data/.gitignore -------------------------------------------------------------------------------- /week6/particlePointer/bin/data/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week6/particlePointer/bin/data/star.png -------------------------------------------------------------------------------- /week6/particlePointer/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week6/particlePointer/multiParticles.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week6/particlePointer/particlePointer.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week6/particlePointer/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week6/particlePointerFont/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week6/particlePointerFont/bin/data/cooperBlack.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week6/particlePointerFont/bin/data/cooperBlack.ttf -------------------------------------------------------------------------------- /week6/particlePointerFont/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week6/particlePointerFont/multiParticles.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week6/particlePointerFont/particlePointerFont.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week6/particlePointerFont/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week6/vectorField_video/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week6/vectorField_video/addons.make: -------------------------------------------------------------------------------- 1 | ofxOpenCv 2 | -------------------------------------------------------------------------------- /week6/vectorField_video/bin/data/fingers.mov: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week6/vectorField_video/bin/data/fingers.mov -------------------------------------------------------------------------------- /week6/vectorField_video/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week6/vectorField_video/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window,1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week6/vectorField_video/vectorField_video.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7/1_particle_w_image/1_particle_w_image.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7/1_particle_w_image/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week7/1_particle_w_image/bin/data/spot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week7/1_particle_w_image/bin/data/spot.png -------------------------------------------------------------------------------- /week7/1_particle_w_image/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week7/1_particle_w_image/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window,1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7/2_particle_particle_binning/2_particle_particle_binning.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7/2_particle_particle_binning/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week7/2_particle_particle_binning/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week7/2_particle_particle_binning/bin/data/.gitignore -------------------------------------------------------------------------------- /week7/2_particle_particle_binning/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week7/2_particle_particle_binning/src/binner.h: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | #ifndef BINNER_H 5 | #define BINNER_H 6 | 7 | void setupBins(int w, int h, int nDivisionsX, int nDivisionsY); // do this once! 8 | void computeBinPosition(int xpos, int ypos, unsigned int *bitFlag, unsigned int *bitFlag2); 9 | 10 | //------------------------------------------------------ 11 | 12 | 13 | #endif -------------------------------------------------------------------------------- /week7/2_particle_particle_binning/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window,1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7/3_particle_particle_fast/3_particle_particle_fast.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7/3_particle_particle_fast/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week7/3_particle_particle_fast/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week7/3_particle_particle_fast/bin/data/.gitignore -------------------------------------------------------------------------------- /week7/3_particle_particle_fast/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week7/3_particle_particle_fast/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window,1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week7/3_particle_particle_fast/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | #include "ofMain.h" 5 | #include "particle.h" 6 | 7 | class ofApp : public ofSimpleApp{ 8 | 9 | public: 10 | 11 | void setup(); 12 | void update(); 13 | void draw(); 14 | 15 | void keyPressed (int key); 16 | void keyReleased (int key); 17 | 18 | void mouseMoved(int x, int y ); 19 | void mouseDragged(int x, int y, int button); 20 | void mousePressed(int x, int y, int button); 21 | void mouseReleased(); 22 | 23 | vector myParticles; 24 | 25 | 26 | 27 | }; 28 | 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /week7/3_particle_particle_video/3_particle_particle_video.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week7/3_particle_particle_video/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week7/3_particle_particle_video/addons.make: -------------------------------------------------------------------------------- 1 | ofxOpenCv 2 | -------------------------------------------------------------------------------- /week7/3_particle_particle_video/bin/data/fingers.mov: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week7/3_particle_particle_video/bin/data/fingers.mov -------------------------------------------------------------------------------- /week7/3_particle_particle_video/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week7/3_particle_particle_video/src/binner.h: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | #ifndef BINNER_H 5 | #define BINNER_H 6 | 7 | void setupBins(int w, int h, int nDivisionsX, int nDivisionsY); // do this once! 8 | void computeBinPosition(int xpos, int ypos, unsigned int *bitFlag, unsigned int *bitFlag2); 9 | 10 | //------------------------------------------------------ 11 | 12 | 13 | #endif -------------------------------------------------------------------------------- /week7/3_particle_particle_video/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week8/multiForces/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week8/multiForces/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week8/multiForces/bin/data/.gitignore -------------------------------------------------------------------------------- /week8/multiForces/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week8/multiForces/multiForces.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week8/multiForces/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context 9 | 10 | // this kicks off the running of my app 11 | // can be OF_WINDOW or OF_FULLSCREEN 12 | // pass in width and height too: 13 | 14 | ofRunApp(new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week8/multiForces/src/spring.h: -------------------------------------------------------------------------------- 1 | #ifndef SPRING_H 2 | #define SPRING_H 3 | 4 | #include "ofMain.h" 5 | 6 | #include "particle.h" 7 | 8 | class spring { 9 | 10 | public: 11 | 12 | spring(); 13 | 14 | particle * particleA; 15 | particle * particleB; 16 | 17 | float distance; 18 | float springiness; // this is the k, springiness constant 19 | 20 | void update(); 21 | void draw(); 22 | 23 | 24 | }; 25 | 26 | 27 | #endif -------------------------------------------------------------------------------- /week8/multiForces2/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week8/multiForces2/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week8/multiForces2/bin/data/.gitignore -------------------------------------------------------------------------------- /week8/multiForces2/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week8/multiForces2/multiForces2.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week8/multiForces2/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context 9 | 10 | // this kicks off the running of my app 11 | // can be OF_WINDOW or OF_FULLSCREEN 12 | // pass in width and height too: 13 | 14 | ofRunApp(new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week8/multiForces2/src/spring.h: -------------------------------------------------------------------------------- 1 | #ifndef SPRING_H 2 | #define SPRING_H 3 | 4 | #include "ofMain.h" 5 | 6 | #include "particle.h" 7 | 8 | class spring { 9 | 10 | public: 11 | 12 | spring(); 13 | 14 | particle * particleA; 15 | particle * particleB; 16 | 17 | float distance; 18 | float springiness; // this is the k, springiness constant 19 | 20 | void update(); 21 | void draw(); 22 | 23 | 24 | }; 25 | 26 | 27 | #endif -------------------------------------------------------------------------------- /week8/muscles/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week8/muscles/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week8/muscles/bin/data/.gitignore -------------------------------------------------------------------------------- /week8/muscles/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week8/muscles/muscles.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week8/muscles/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context 9 | 10 | // this kicks off the running of my app 11 | // can be OF_WINDOW or OF_FULLSCREEN 12 | // pass in width and height too: 13 | 14 | ofRunApp(new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week8/muscles/src/spring.h: -------------------------------------------------------------------------------- 1 | #ifndef SPRING_H 2 | #define SPRING_H 3 | 4 | #include "ofMain.h" 5 | 6 | #include "particle.h" 7 | 8 | class spring { 9 | 10 | public: 11 | 12 | spring(); 13 | 14 | particle * particleA; 15 | particle * particleB; 16 | 17 | float distance; 18 | float springiness; // this is the k, springiness constant 19 | 20 | void update(); 21 | void draw(); 22 | 23 | 24 | }; 25 | 26 | 27 | #endif -------------------------------------------------------------------------------- /week8/shapes/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week8/shapes/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week8/shapes/bin/data/.gitignore -------------------------------------------------------------------------------- /week8/shapes/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week8/shapes/shapes.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week8/shapes/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context 9 | 10 | // this kicks off the running of my app 11 | // can be OF_WINDOW or OF_FULLSCREEN 12 | // pass in width and height too: 13 | 14 | ofRunApp(new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week8/shapes/src/spring.h: -------------------------------------------------------------------------------- 1 | #ifndef SPRING_H 2 | #define SPRING_H 3 | 4 | #include "ofMain.h" 5 | 6 | #include "particle.h" 7 | 8 | class spring { 9 | 10 | public: 11 | 12 | spring(); 13 | 14 | particle * particleA; 15 | particle * particleB; 16 | 17 | float distance; 18 | float springiness; // this is the k, springiness constant 19 | 20 | void update(); 21 | void draw(); 22 | 23 | 24 | }; 25 | 26 | 27 | #endif -------------------------------------------------------------------------------- /week8/springs/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week8/springs/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week8/springs/bin/data/.gitignore -------------------------------------------------------------------------------- /week8/springs/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week8/springs/springs.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week8/springs/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofSetupOpenGL(1024,768, OF_WINDOW); // <-------- setup the GL context 9 | 10 | // this kicks off the running of my app 11 | // can be OF_WINDOW or OF_FULLSCREEN 12 | // pass in width and height too: 13 | 14 | ofRunApp(new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week8/springs/src/spring.h: -------------------------------------------------------------------------------- 1 | #ifndef SPRING_H 2 | #define SPRING_H 3 | 4 | #include "ofMain.h" 5 | 6 | #include "particle.h" 7 | 8 | class spring { 9 | 10 | public: 11 | 12 | spring(); 13 | 14 | particle * particleA; 15 | particle * particleB; 16 | 17 | float distance; 18 | float springiness; // this is the k, springiness constant 19 | 20 | void update(); 21 | void draw(); 22 | 23 | 24 | }; 25 | 26 | 27 | #endif -------------------------------------------------------------------------------- /week9/controlPanel/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week9/controlPanel/addons.make: -------------------------------------------------------------------------------- 1 | ofxXmlSettings -------------------------------------------------------------------------------- /week9/controlPanel/bin/data/mono.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week9/controlPanel/bin/data/mono.ttf -------------------------------------------------------------------------------- /week9/controlPanel/controlPanel.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week9/controlPanel/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week9/controlPanel/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window,1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week9/controlPanel/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | 4 | 5 | #include "ofMain.h" 6 | #include "ofxControlPanel.h" 7 | 8 | 9 | class ofApp : public ofSimpleApp{ 10 | 11 | public: 12 | 13 | void setup(); 14 | void update(); 15 | void draw(); 16 | 17 | void keyPressed (int key); 18 | void keyReleased (int key); 19 | 20 | void mouseMoved(int x, int y ); 21 | void mouseDragged(int x, int y, int button); 22 | void mousePressed(int x, int y, int button); 23 | void mouseReleased(); 24 | 25 | 26 | ofxControlPanel panel; 27 | 28 | 29 | 30 | 31 | }; 32 | 33 | #endif 34 | 35 | -------------------------------------------------------------------------------- /week9/controlPanel/src/ofxControlPanel/src/guiCallback.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * guiCallback.cpp 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 31/03/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "guiCallback.h" 11 | 12 | -------------------------------------------------------------------------------- /week9/controlPanel/src/ofxControlPanel/src/guiCallback.h: -------------------------------------------------------------------------------- 1 | /* 2 | * guiCallback.h 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 31/03/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #pragma once 11 | #include "ofMain.h" 12 | #include "guiCallbackValue.h" 13 | 14 | class guiCustomEvent{ 15 | public: 16 | vector names; 17 | string group; 18 | 19 | ofEvent guiEvent; 20 | }; -------------------------------------------------------------------------------- /week9/controlPanel/src/ofxControlPanel/src/guiCallbackValue.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * guiCallbackValue.cpp 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 31/03/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "guiCallbackValue.h" 11 | 12 | -------------------------------------------------------------------------------- /week9/controlPanel/src/ofxControlPanel/src/guiTypeChartPlotter.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * guiTypeChartPlotter.cpp 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 01/04/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "guiTypeChartPlotter.h" 11 | 12 | -------------------------------------------------------------------------------- /week9/controlPanel/src/ofxControlPanel/src/guiTypeLabel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * guiTypeLabel.h 3 | * artvertiser 4 | * 5 | * Created by damian on 10/10/10. 6 | * Copyright 2010 frey damian@frey.co.nz. All rights reserved. 7 | * 8 | */ 9 | 10 | #pragma once 11 | 12 | 13 | #include "guiBaseObject.h" 14 | #include "guiColor.h" 15 | #include "simpleColor.h" 16 | #include "guiValue.h" 17 | 18 | class guiTypeLabel : public guiBaseObject{ 19 | 20 | public: 21 | 22 | //------------------------------------------------ 23 | void setup(string text ); 24 | void setText( string new_text ); 25 | void render(); 26 | 27 | }; 28 | -------------------------------------------------------------------------------- /week9/controlPanel/src/ofxControlPanel/src/guiTypeSlider.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | 4 | #include "guiBaseObject.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | class guiTypeSlider : public guiBaseObject{ 10 | 11 | public: 12 | 13 | //------------------------------------------------ 14 | void setup(string sliderName, float defaultVal, float min, float max); 15 | 16 | virtual void updateValue(); 17 | void updateGui(float x, float y, bool firstHit, bool isRelative = false); 18 | void render(); 19 | 20 | }; 21 | -------------------------------------------------------------------------------- /week9/controlPanel/src/ofxControlPanel/src/guiTypeText.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week9/controlPanel/src/ofxControlPanel/src/guiTypeText.cpp -------------------------------------------------------------------------------- /week9/controlPanel/src/ofxControlPanel/src/guiTypeText.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "guiBaseObject.h" 4 | #include "guiTypeText.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | class guiTypeText : public guiBaseObject, public guiTextBase{ 10 | 11 | public: 12 | 13 | 14 | 15 | }; 16 | -------------------------------------------------------------------------------- /week9/controlPanel/src/ofxControlPanel/src/guiTypeVairableLister.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * guiTypeVairableLister.cpp 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 01/04/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "guiTypeVairableLister.h" 11 | 12 | -------------------------------------------------------------------------------- /week9/flocking/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week9/flocking/addons.make: -------------------------------------------------------------------------------- 1 | ofxXmlSettings -------------------------------------------------------------------------------- /week9/flocking/bin/data/mono.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week9/flocking/bin/data/mono.ttf -------------------------------------------------------------------------------- /week9/flocking/flocking.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week9/flocking/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week9/flocking/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window,1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week9/flocking/src/ofxControlPanel/src/guiCallback.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * guiCallback.cpp 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 31/03/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "guiCallback.h" 11 | 12 | -------------------------------------------------------------------------------- /week9/flocking/src/ofxControlPanel/src/guiCallback.h: -------------------------------------------------------------------------------- 1 | /* 2 | * guiCallback.h 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 31/03/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #pragma once 11 | #include "ofMain.h" 12 | #include "guiCallbackValue.h" 13 | 14 | class guiCustomEvent{ 15 | public: 16 | vector names; 17 | string group; 18 | 19 | ofEvent guiEvent; 20 | }; -------------------------------------------------------------------------------- /week9/flocking/src/ofxControlPanel/src/guiCallbackValue.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * guiCallbackValue.cpp 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 31/03/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "guiCallbackValue.h" 11 | 12 | -------------------------------------------------------------------------------- /week9/flocking/src/ofxControlPanel/src/guiTypeChartPlotter.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * guiTypeChartPlotter.cpp 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 01/04/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "guiTypeChartPlotter.h" 11 | 12 | -------------------------------------------------------------------------------- /week9/flocking/src/ofxControlPanel/src/guiTypeLabel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * guiTypeLabel.h 3 | * artvertiser 4 | * 5 | * Created by damian on 10/10/10. 6 | * Copyright 2010 frey damian@frey.co.nz. All rights reserved. 7 | * 8 | */ 9 | 10 | #pragma once 11 | 12 | 13 | #include "guiBaseObject.h" 14 | #include "guiColor.h" 15 | #include "simpleColor.h" 16 | #include "guiValue.h" 17 | 18 | class guiTypeLabel : public guiBaseObject{ 19 | 20 | public: 21 | 22 | //------------------------------------------------ 23 | void setup(string text ); 24 | void setText( string new_text ); 25 | void render(); 26 | 27 | }; 28 | -------------------------------------------------------------------------------- /week9/flocking/src/ofxControlPanel/src/guiTypeSlider.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | 4 | #include "guiBaseObject.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | class guiTypeSlider : public guiBaseObject{ 10 | 11 | public: 12 | 13 | //------------------------------------------------ 14 | void setup(string sliderName, float defaultVal, float min, float max); 15 | 16 | virtual void updateValue(); 17 | void updateGui(float x, float y, bool firstHit, bool isRelative = false); 18 | void render(); 19 | 20 | }; 21 | -------------------------------------------------------------------------------- /week9/flocking/src/ofxControlPanel/src/guiTypeText.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week9/flocking/src/ofxControlPanel/src/guiTypeText.cpp -------------------------------------------------------------------------------- /week9/flocking/src/ofxControlPanel/src/guiTypeText.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "guiBaseObject.h" 4 | #include "guiTypeText.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | class guiTypeText : public guiBaseObject, public guiTextBase{ 10 | 11 | public: 12 | 13 | 14 | 15 | }; 16 | -------------------------------------------------------------------------------- /week9/flocking/src/ofxControlPanel/src/guiTypeVairableLister.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * guiTypeVairableLister.cpp 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 01/04/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "guiTypeVairableLister.h" 11 | 12 | -------------------------------------------------------------------------------- /week9/inheritance/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week9/inheritance/bin/data/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week9/inheritance/bin/data/.gitignore -------------------------------------------------------------------------------- /week9/inheritance/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week9/inheritance/inheritance.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week9/inheritance/src/circleParticle.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * traingleParticle.cpp 3 | * algo_wk10_inheritance 4 | * 5 | * Created by zachary lieberman on 11/8/11. 6 | * Copyright 2011 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "circleParticle.h" 11 | 12 | 13 | void circleParticle::draw(){ 14 | 15 | float size = 4; 16 | ofNoFill(); 17 | ofCircle(pos.x, pos.y, size); 18 | ofFill(); 19 | } -------------------------------------------------------------------------------- /week9/inheritance/src/circleParticle.h: -------------------------------------------------------------------------------- 1 | /* 2 | * traingleParticle.h 3 | * algo_wk10_inheritance 4 | * 5 | * Created by zachary lieberman on 11/8/11. 6 | * Copyright 2011 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | 11 | #pragma once 12 | 13 | #include "ofMain.h" 14 | #include "particle.h" 15 | 16 | class circleParticle : public particle { 17 | 18 | public: 19 | void draw(); 20 | }; -------------------------------------------------------------------------------- /week9/inheritance/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window,1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week9/inheritance/src/squareParticle.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * traingleParticle.cpp 3 | * algo_wk10_inheritance 4 | * 5 | * Created by zachary lieberman on 11/8/11. 6 | * Copyright 2011 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "squareParticle.h" 11 | 12 | 13 | void squareParticle::draw(){ 14 | float size = 4; 15 | ofRect(pos.x - size/2, pos.y - size/2, size, size); 16 | } -------------------------------------------------------------------------------- /week9/inheritance/src/squareParticle.h: -------------------------------------------------------------------------------- 1 | /* 2 | * traingleParticle.h 3 | * algo_wk10_inheritance 4 | * 5 | * Created by zachary lieberman on 11/8/11. 6 | * Copyright 2011 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | 11 | #pragma once 12 | 13 | #include "ofMain.h" 14 | #include "particle.h" 15 | 16 | class squareParticle : public particle { 17 | 18 | public: 19 | 20 | void draw(); 21 | 22 | }; -------------------------------------------------------------------------------- /week9/inheritance/src/triangleParticle.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * traingleParticle.cpp 3 | * algo_wk10_inheritance 4 | * 5 | * Created by zachary lieberman on 11/8/11. 6 | * Copyright 2011 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "triangleParticle.h" 11 | 12 | 13 | void triangleParticle::draw(){ 14 | 15 | float size = 4; 16 | ofPoint ptA = pos + ofPoint( cos(TWO_PI/3) * size, sin(TWO_PI/3) * size); 17 | ofPoint ptB = pos + ofPoint( cos(2*TWO_PI/3) * size, sin(2*TWO_PI/3) * size); 18 | ofPoint ptC = pos + ofPoint( cos(3*TWO_PI/3) * size, sin(3*TWO_PI/3) * size); 19 | 20 | ofTriangle(ptA, ptB, ptC); 21 | } -------------------------------------------------------------------------------- /week9/inheritance/src/triangleParticle.h: -------------------------------------------------------------------------------- 1 | /* 2 | * traingleParticle.h 3 | * algo_wk10_inheritance 4 | * 5 | * Created by zachary lieberman on 11/8/11. 6 | * Copyright 2011 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | 11 | #pragma once 12 | 13 | #include "ofMain.h" 14 | #include "particle.h" 15 | 16 | class triangleParticle : public particle { 17 | 18 | public: 19 | void draw(); 20 | }; -------------------------------------------------------------------------------- /week9/noise/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week9/noise/bin/data/mono.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week9/noise/bin/data/mono.ttf -------------------------------------------------------------------------------- /week9/noise/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week9/noise/noise.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week9/noise/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window,1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week9/noise/src/ofxControlPanel/src/guiCallback.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * guiCallback.cpp 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 31/03/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "guiCallback.h" 11 | 12 | -------------------------------------------------------------------------------- /week9/noise/src/ofxControlPanel/src/guiCallback.h: -------------------------------------------------------------------------------- 1 | /* 2 | * guiCallback.h 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 31/03/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #pragma once 11 | #include "ofMain.h" 12 | #include "guiCallbackValue.h" 13 | 14 | class guiCustomEvent{ 15 | public: 16 | vector names; 17 | string group; 18 | 19 | ofEvent guiEvent; 20 | }; -------------------------------------------------------------------------------- /week9/noise/src/ofxControlPanel/src/guiCallbackValue.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * guiCallbackValue.cpp 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 31/03/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "guiCallbackValue.h" 11 | 12 | -------------------------------------------------------------------------------- /week9/noise/src/ofxControlPanel/src/guiTypeChartPlotter.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * guiTypeChartPlotter.cpp 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 01/04/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "guiTypeChartPlotter.h" 11 | 12 | -------------------------------------------------------------------------------- /week9/noise/src/ofxControlPanel/src/guiTypeLabel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * guiTypeLabel.h 3 | * artvertiser 4 | * 5 | * Created by damian on 10/10/10. 6 | * Copyright 2010 frey damian@frey.co.nz. All rights reserved. 7 | * 8 | */ 9 | 10 | #pragma once 11 | 12 | 13 | #include "guiBaseObject.h" 14 | #include "guiColor.h" 15 | #include "simpleColor.h" 16 | #include "guiValue.h" 17 | 18 | class guiTypeLabel : public guiBaseObject{ 19 | 20 | public: 21 | 22 | //------------------------------------------------ 23 | void setup(string text ); 24 | void setText( string new_text ); 25 | void render(); 26 | 27 | }; 28 | -------------------------------------------------------------------------------- /week9/noise/src/ofxControlPanel/src/guiTypeSlider.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | 4 | #include "guiBaseObject.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | class guiTypeSlider : public guiBaseObject{ 10 | 11 | public: 12 | 13 | //------------------------------------------------ 14 | void setup(string sliderName, float defaultVal, float min, float max); 15 | 16 | virtual void updateValue(); 17 | void updateGui(float x, float y, bool firstHit, bool isRelative = false); 18 | void render(); 19 | 20 | }; 21 | -------------------------------------------------------------------------------- /week9/noise/src/ofxControlPanel/src/guiTypeText.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week9/noise/src/ofxControlPanel/src/guiTypeText.cpp -------------------------------------------------------------------------------- /week9/noise/src/ofxControlPanel/src/guiTypeText.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "guiBaseObject.h" 4 | #include "guiTypeText.h" 5 | #include "guiColor.h" 6 | #include "simpleColor.h" 7 | #include "guiValue.h" 8 | 9 | class guiTypeText : public guiBaseObject, public guiTextBase{ 10 | 11 | public: 12 | 13 | 14 | 15 | }; 16 | -------------------------------------------------------------------------------- /week9/noise/src/ofxControlPanel/src/guiTypeVairableLister.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * guiTypeVairableLister.cpp 3 | * ofxControlPanelDemo 4 | * 5 | * Created by theo on 01/04/2010. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "guiTypeVairableLister.h" 11 | 12 | -------------------------------------------------------------------------------- /week9/noiseParticles/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week9/noiseParticles/bin/data/mono.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week9/noiseParticles/bin/data/mono.ttf -------------------------------------------------------------------------------- /week9/noiseParticles/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week9/noiseParticles/noiseParticles.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week9/noiseParticles/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window,1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week9/noiseParticles/src/noiseField.h: -------------------------------------------------------------------------------- 1 | /* 2 | * noiseField.h 3 | * class12 4 | * 5 | * Created by zachary lieberman on 11/16/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #pragma once 11 | 12 | #include "ofMain.h" 13 | 14 | class noiseField { 15 | 16 | public: 17 | 18 | void setup(); 19 | 20 | float scaleOfField; 21 | 22 | ofVec2f getNoiseForPosition(float x, float y, float outputScale); 23 | void draw(); 24 | 25 | void setTime(float t); 26 | float noiseTime; 27 | 28 | 29 | }; 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /week9/scene/.vcproj.user: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 15 | 16 | 19 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /week9/scene/Makefile: -------------------------------------------------------------------------------- 1 | # Attempt to load a config.make file. 2 | # If none is found, project defaults in config.project.make will be used. 3 | ifneq ($(wildcard config.make),) 4 | include config.make 5 | endif 6 | 7 | # make sure the the OF_ROOT location is defined 8 | ifndef OF_ROOT 9 | OF_ROOT=../../.. 10 | endif 11 | 12 | # call the project makefile! 13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk 14 | -------------------------------------------------------------------------------- /week9/scene/bin/data/frog-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week9/scene/bin/data/frog-1.jpg -------------------------------------------------------------------------------- /week9/scene/icon.rc: -------------------------------------------------------------------------------- 1 | //TODO: figure out how to do debug and release icons 2 | MAINICON ICON "../../../libs/openFrameworksCompiled/project/win_cb/icon.ico" 3 | -------------------------------------------------------------------------------- /week9/scene/scene.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week9/scene/src/baseScene.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ofZach/algo2012/7e13c20bab94e1769f6751c4e124964ae05b7087/week9/scene/src/baseScene.cpp -------------------------------------------------------------------------------- /week9/scene/src/baseScene.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #ifndef _BASE_SCENE 5 | #define _BASE_SCENE 6 | 7 | 8 | #include "ofMain.h" 9 | 10 | 11 | class baseScene { 12 | 13 | 14 | public: 15 | 16 | virtual void setup(){}; 17 | virtual void update(){}; 18 | virtual void draw(){}; 19 | 20 | 21 | 22 | }; 23 | 24 | 25 | 26 | 27 | 28 | #endif -------------------------------------------------------------------------------- /week9/scene/src/circleScene.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * squareScene.cpp 3 | * sceneExample 4 | * 5 | * Created by zachary lieberman on 11/30/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "circleScene.h" 11 | 12 | 13 | void circleScene::setup(){ 14 | 15 | } 16 | 17 | void circleScene::update(){ 18 | 19 | } 20 | 21 | void circleScene::draw(){ 22 | 23 | ofSetColor(0,0,0); 24 | for (int i = 0; i < 100; i++){ 25 | ofCircle(ofRandom(0,ofGetWidth()), ofRandom(0, ofGetHeight()), ofRandom(50,100)); 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /week9/scene/src/circleScene.h: -------------------------------------------------------------------------------- 1 | /* 2 | * squareScene.h 3 | * sceneExample 4 | * 5 | * Created by zachary lieberman on 11/30/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | 11 | 12 | #ifndef _CIRCLE_SCENE 13 | #define _CIRCLE_SCENE 14 | 15 | 16 | #include "ofMain.h" 17 | #include "baseScene.h" 18 | 19 | 20 | class circleScene : public baseScene { 21 | 22 | public: 23 | 24 | void setup(); 25 | void update(); 26 | void draw(); 27 | 28 | void sayHello(){ 29 | printf("hi!\n"); 30 | } 31 | }; 32 | 33 | 34 | 35 | 36 | #endif 37 | 38 | 39 | -------------------------------------------------------------------------------- /week9/scene/src/imageScene.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * squareScene.cpp 3 | * sceneExample 4 | * 5 | * Created by zachary lieberman on 11/30/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "imageScene.h" 11 | 12 | 13 | 14 | void imageScene::setup(){ 15 | 16 | frog.loadImage("frog-1.jpg"); 17 | } 18 | 19 | 20 | void imageScene::update(){ 21 | 22 | } 23 | 24 | void imageScene::draw(){ 25 | 26 | ofSetRectMode(OF_RECTMODE_CORNER); 27 | ofSetColor(255,255,255); 28 | frog.draw(100,100); 29 | 30 | } 31 | 32 | -------------------------------------------------------------------------------- /week9/scene/src/imageScene.h: -------------------------------------------------------------------------------- 1 | /* 2 | * squareScene.h 3 | * sceneExample 4 | * 5 | * Created by zachary lieberman on 11/30/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | 11 | 12 | #ifndef _IMAGE_SCENE 13 | #define _IMAGE_SCENE 14 | 15 | 16 | #include "ofMain.h" 17 | #include "baseScene.h" 18 | 19 | 20 | class imageScene : public baseScene { 21 | 22 | 23 | void setup(); 24 | void update(); 25 | void draw(); 26 | 27 | ofImage frog; 28 | 29 | }; 30 | 31 | 32 | 33 | 34 | #endif 35 | 36 | 37 | -------------------------------------------------------------------------------- /week9/scene/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | #include "ofAppGlutWindow.h" 4 | 5 | //======================================================================== 6 | int main( ){ 7 | 8 | ofAppGlutWindow window; 9 | ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context 10 | 11 | // this kicks off the running of my app 12 | // can be OF_WINDOW or OF_FULLSCREEN 13 | // pass in width and height too: 14 | ofRunApp( new ofApp()); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /week9/scene/src/squareScene.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * squareScene.cpp 3 | * sceneExample 4 | * 5 | * Created by zachary lieberman on 11/30/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "squareScene.h" 11 | 12 | 13 | 14 | void squareScene::setup(){ 15 | 16 | } 17 | 18 | 19 | void squareScene::update(){ 20 | 21 | } 22 | 23 | void squareScene::draw(){ 24 | 25 | ofSetColor(255,0,0); 26 | ofSetRectMode(OF_RECTMODE_CENTER); 27 | ofRect(ofGetWidth()/2, ofGetHeight()/2, 300 + sin(ofGetElapsedTimef())*100, 300 + sin(ofGetElapsedTimef())*100); 28 | 29 | } 30 | 31 | -------------------------------------------------------------------------------- /week9/scene/src/squareScene.h: -------------------------------------------------------------------------------- 1 | /* 2 | * squareScene.h 3 | * sceneExample 4 | * 5 | * Created by zachary lieberman on 11/30/10. 6 | * Copyright 2010 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | 11 | 12 | #ifndef _SQUARE_SCENE 13 | #define _SQUARE_SCENE 14 | 15 | 16 | #include "ofMain.h" 17 | #include "baseScene.h" 18 | 19 | 20 | class squareScene : public baseScene { 21 | 22 | 23 | void setup(); 24 | void update(); 25 | void draw(); 26 | 27 | 28 | }; 29 | 30 | 31 | 32 | 33 | #endif 34 | 35 | 36 | --------------------------------------------------------------------------------