├── .gitignore ├── LICENSE ├── README.md ├── homework.md ├── week_01 ├── 01_simpleClass │ ├── 01_simpleClass.cbp │ ├── 01_simpleClass.sln │ ├── 01_simpleClass.vcxproj │ ├── 01_simpleClass.vcxproj.filters │ ├── 01_simpleClass.vcxproj.user │ ├── 01_simpleClass.workspace │ ├── 01_simpleClass.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 01_simpleClass Debug.xcscheme │ │ │ └── 01_simpleClass Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── customCircle.cpp │ │ ├── customCircle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 02_interpolation │ ├── 02_interpolation.cbp │ ├── 02_interpolation.sln │ ├── 02_interpolation.vcxproj │ ├── 02_interpolation.vcxproj.filters │ ├── 02_interpolation.vcxproj.user │ ├── 02_interpolation.workspace │ ├── 02_interpolation.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 02_interpolation Debug.xcscheme │ │ │ └── 02_interpolation Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── customCircle.cpp │ │ ├── customCircle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 03_interpolationClick │ ├── 03_interpolationClick.cbp │ ├── 03_interpolationClick.sln │ ├── 03_interpolationClick.vcxproj │ ├── 03_interpolationClick.vcxproj.filters │ ├── 03_interpolationClick.vcxproj.user │ ├── 03_interpolationClick.workspace │ ├── 03_interpolationClick.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 03_interpolationClick Debug.xcscheme │ │ │ └── 03_interpolationClick Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── customCircle.cpp │ │ ├── customCircle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 04_interpolationEase │ ├── 04_interpolationEase.cbp │ ├── 04_interpolationEase.sln │ ├── 04_interpolationEase.vcxproj │ ├── 04_interpolationEase.vcxproj.filters │ ├── 04_interpolationEase.vcxproj.user │ ├── 04_interpolationEase.workspace │ ├── 04_interpolationEase.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 04_interpolationEase Debug.xcscheme │ │ │ └── 04_interpolationEase Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── customCircle.cpp │ │ ├── customCircle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 05_interpolationPenner │ ├── 05_interpolationPenner.cbp │ ├── 05_interpolationPenner.sln │ ├── 05_interpolationPenner.vcxproj │ ├── 05_interpolationPenner.vcxproj.filters │ ├── 05_interpolationPenner.vcxproj.user │ ├── 05_interpolationPenner.workspace │ ├── 05_interpolationPenner.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 05_interpolationPenner Debug.xcscheme │ │ │ └── 05_interpolationPenner Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── customCircle.cpp │ │ ├── customCircle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 06_interpolationXeno │ ├── 06_interpolationXeno.cbp │ ├── 06_interpolationXeno.sln │ ├── 06_interpolationXeno.vcxproj │ ├── 06_interpolationXeno.vcxproj.filters │ ├── 06_interpolationXeno.vcxproj.user │ ├── 06_interpolationXeno.workspace │ ├── 06_interpolationXeno.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 06_interpolationXeno Debug.xcscheme │ │ │ └── 06_interpolationXeno Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── customCircle.cpp │ │ ├── customCircle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h └── README.md ├── week_02 ├── 01_vectorXeno │ ├── 01_vectorXeno.cbp │ ├── 01_vectorXeno.sln │ ├── 01_vectorXeno.vcxproj │ ├── 01_vectorXeno.vcxproj.filters │ ├── 01_vectorXeno.vcxproj.user │ ├── 01_vectorXeno.workspace │ ├── 01_vectorXeno.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 01_vectorXeno Debug.xcscheme │ │ │ └── 01_vectorXeno Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── customCircle.cpp │ │ ├── customCircle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 02_shapes │ ├── 02_shapes.cbp │ ├── 02_shapes.sln │ ├── 02_shapes.vcxproj │ ├── 02_shapes.vcxproj.filters │ ├── 02_shapes.vcxproj.user │ ├── 02_shapes.workspace │ ├── 02_shapes.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 02_shapes Debug.xcscheme │ │ │ └── 02_shapes Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 03_randomWalker │ ├── 03_randomWalker.cbp │ ├── 03_randomWalker.sln │ ├── 03_randomWalker.vcxproj │ ├── 03_randomWalker.vcxproj.filters │ ├── 03_randomWalker.vcxproj.user │ ├── 03_randomWalker.workspace │ ├── 03_randomWalker.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 03_randomWalker Debug.xcscheme │ │ │ └── 03_randomWalker Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── customCircle.cpp │ │ ├── customCircle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 04_randomWalkerTendency │ ├── 04_randomWalkerTendency.cbp │ ├── 04_randomWalkerTendency.sln │ ├── 04_randomWalkerTendency.vcxproj │ ├── 04_randomWalkerTendency.vcxproj.filters │ ├── 04_randomWalkerTendency.vcxproj.user │ ├── 04_randomWalkerTendency.workspace │ ├── 04_randomWalkerTendency.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 04_randomWalkerTendency Debug.xcscheme │ │ │ └── 04_randomWalkerTendency Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── customCircle.cpp │ │ ├── customCircle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 05_gaussian │ ├── 05_gaussian.cbp │ ├── 05_gaussian.sln │ ├── 05_gaussian.vcxproj │ ├── 05_gaussian.vcxproj.filters │ ├── 05_gaussian.vcxproj.user │ ├── 05_gaussian.workspace │ ├── 05_gaussian.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 05_gaussian Debug.xcscheme │ │ │ └── 05_gaussian Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 06_noise │ ├── 06_noise.cbp │ ├── 06_noise.sln │ ├── 06_noise.vcxproj │ ├── 06_noise.vcxproj.filters │ ├── 06_noise.vcxproj.user │ ├── 06_noise.workspace │ ├── 06_noise.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 06_noise Debug.xcscheme │ │ │ └── 06_noise Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 07_randomGaussianNoisePlotter │ ├── 07_randomGaussianNoisePlotter.cbp │ ├── 07_randomGaussianNoisePlotter.sln │ ├── 07_randomGaussianNoisePlotter.vcxproj │ ├── 07_randomGaussianNoisePlotter.vcxproj.filters │ ├── 07_randomGaussianNoisePlotter.vcxproj.user │ ├── 07_randomGaussianNoisePlotter.workspace │ ├── 07_randomGaussianNoisePlotter.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 07_randomGaussianNoisePlotter Debug.xcscheme │ │ │ └── 07_randomGaussianNoisePlotter Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 08_noiseWalk │ ├── 08_noiseWalk.cbp │ ├── 08_noiseWalk.sln │ ├── 08_noiseWalk.vcxproj │ ├── 08_noiseWalk.vcxproj.filters │ ├── 08_noiseWalk.vcxproj.user │ ├── 08_noiseWalk.workspace │ ├── 08_noiseWalk.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 08_noiseWalk Debug.xcscheme │ │ │ └── 08_noiseWalk Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h └── README.md ├── week_03 ├── 01_noiseLandscape │ ├── 01_noiseLandscape.cbp │ ├── 01_noiseLandscape.sln │ ├── 01_noiseLandscape.vcxproj │ ├── 01_noiseLandscape.vcxproj.filters │ ├── 01_noiseLandscape.vcxproj.user │ ├── 01_noiseLandscape.workspace │ ├── 01_noiseLandscape.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 01_noiseLandscape Debug.xcscheme │ │ │ └── 01_noiseLandscape Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── mountain.cpp │ │ ├── mountain.h │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 02_radiansDegrees │ ├── 02_radiansDegrees.cbp │ ├── 02_radiansDegrees.sln │ ├── 02_radiansDegrees.vcxproj │ ├── 02_radiansDegrees.vcxproj.filters │ ├── 02_radiansDegrees.vcxproj.user │ ├── 02_radiansDegrees.workspace │ ├── 02_radiansDegrees.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 02_radiansDegrees Debug.xcscheme │ │ │ └── 02_radiansDegrees Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 03_sineCosine │ ├── 03_sineCosine.cbp │ ├── 03_sineCosine.sln │ ├── 03_sineCosine.vcxproj │ ├── 03_sineCosine.vcxproj.filters │ ├── 03_sineCosine.vcxproj.user │ ├── 03_sineCosine.workspace │ ├── 03_sineCosine.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 03_sineCosine Debug.xcscheme │ │ │ └── 03_sineCosine Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 04_sineSizeColor │ ├── 04_sineSizeColor.cbp │ ├── 04_sineSizeColor.sln │ ├── 04_sineSizeColor.vcxproj │ ├── 04_sineSizeColor.vcxproj.filters │ ├── 04_sineSizeColor.vcxproj.user │ ├── 04_sineSizeColor.workspace │ ├── 04_sineSizeColor.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 04_sineSizeColor Debug.xcscheme │ │ │ └── 04_sineSizeColor Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 05_manySines │ ├── 05_manySines.cbp │ ├── 05_manySines.sln │ ├── 05_manySines.vcxproj │ ├── 05_manySines.vcxproj.filters │ ├── 05_manySines.vcxproj.user │ ├── 05_manySines.workspace │ ├── 05_manySines.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 05_manySines Debug.xcscheme │ │ │ └── 05_manySines Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── customCircle.cpp │ │ ├── customCircle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 06_simpleHarmony │ ├── 06_simpleHarmony.cbp │ ├── 06_simpleHarmony.sln │ ├── 06_simpleHarmony.vcxproj │ ├── 06_simpleHarmony.vcxproj.filters │ ├── 06_simpleHarmony.vcxproj.user │ ├── 06_simpleHarmony.workspace │ ├── 06_simpleHarmony.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 06_simpleHarmony Debug.xcscheme │ │ │ └── 06_simpleHarmony Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 07_modulation │ ├── 07_modulation.cbp │ ├── 07_modulation.sln │ ├── 07_modulation.vcxproj │ ├── 07_modulation.vcxproj.filters │ ├── 07_modulation.vcxproj.user │ ├── 07_modulation.workspace │ ├── 07_modulation.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 07_modulation Debug.xcscheme │ │ │ └── 07_modulation Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 08_lissajousCurves │ ├── 08_lissajousCurves.cbp │ ├── 08_lissajousCurves.sln │ ├── 08_lissajousCurves.vcxproj │ ├── 08_lissajousCurves.vcxproj.filters │ ├── 08_lissajousCurves.vcxproj.user │ ├── 08_lissajousCurves.workspace │ ├── 08_lissajousCurves.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 08_lissajousCurves Debug.xcscheme │ │ │ └── 08_lissajousCurves Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 09_atan │ ├── 09_atan.cbp │ ├── 09_atan.sln │ ├── 09_atan.vcxproj │ ├── 09_atan.vcxproj.filters │ ├── 09_atan.vcxproj.user │ ├── 09_atan.workspace │ ├── 09_atan.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 09_atan Debug.xcscheme │ │ │ └── 09_atan Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── arrow.cpp │ │ ├── arrow.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h └── README.md ├── week_04 ├── 01_vectors │ ├── 01_vectors.cbp │ ├── 01_vectors.sln │ ├── 01_vectors.vcxproj │ ├── 01_vectors.vcxproj.filters │ ├── 01_vectors.vcxproj.user │ ├── 01_vectors.workspace │ ├── 01_vectors.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 01_vectors Debug.xcscheme │ │ │ └── 01_vectors Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 02_gravity │ ├── 02_gravity.cbp │ ├── 02_gravity.sln │ ├── 02_gravity.vcxproj │ ├── 02_gravity.vcxproj.filters │ ├── 02_gravity.vcxproj.user │ ├── 02_gravity.workspace │ ├── 02_gravity.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 02_gravity Debug.xcscheme │ │ │ └── 02_gravity Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 03_moverClass │ ├── 03_moverClass.cbp │ ├── 03_moverClass.sln │ ├── 03_moverClass.vcxproj │ ├── 03_moverClass.vcxproj.filters │ ├── 03_moverClass.vcxproj.user │ ├── 03_moverClass.workspace │ ├── 03_moverClass.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 03_moverClass Debug.xcscheme │ │ │ └── 03_moverClass Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Mover.cpp │ │ ├── Mover.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 04_mixingForces │ ├── 04_mixingForces.cbp │ ├── 04_mixingForces.sln │ ├── 04_mixingForces.vcxproj │ ├── 04_mixingForces.vcxproj.filters │ ├── 04_mixingForces.vcxproj.user │ ├── 04_mixingForces.workspace │ ├── 04_mixingForces.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 04_mixingForces Debug.xcscheme │ │ │ └── 04_mixingForces Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Mover.cpp │ │ ├── Mover.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 05_mass │ ├── 05_mass.cbp │ ├── 05_mass.sln │ ├── 05_mass.vcxproj │ ├── 05_mass.vcxproj.filters │ ├── 05_mass.vcxproj.user │ ├── 05_mass.workspace │ ├── 05_mass.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 05_mass Debug.xcscheme │ │ │ └── 05_mass Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Mover.cpp │ │ ├── Mover.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h └── README.md ├── week_05 ├── 01_attraction │ ├── 01_attraction.cbp │ ├── 01_attraction.sln │ ├── 01_attraction.vcxproj │ ├── 01_attraction.vcxproj.filters │ ├── 01_attraction.vcxproj.user │ ├── 01_attraction.workspace │ ├── 01_attraction.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 01_attraction Debug.xcscheme │ │ │ └── 01_attraction Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Mover.cpp │ │ ├── Mover.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 02_attractionMany │ ├── 02_attractionMany.cbp │ ├── 02_attractionMany.sln │ ├── 02_attractionMany.vcxproj │ ├── 02_attractionMany.vcxproj.filters │ ├── 02_attractionMany.vcxproj.user │ ├── 02_attractionMany.workspace │ ├── 02_attractionMany.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 02_attractionMany Debug.xcscheme │ │ │ └── 02_attractionMany Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Mover.cpp │ │ ├── Mover.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 03_repulsionMany │ ├── 03_manyParticlesRepulsion.cbp │ ├── 03_manyParticlesRepulsion.sln │ ├── 03_manyParticlesRepulsion.vcxproj │ ├── 03_manyParticlesRepulsion.vcxproj.filters │ ├── 03_manyParticlesRepulsion.vcxproj.user │ ├── 03_manyParticlesRepulsion.workspace │ ├── 03_manyParticlesRepulsion.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 03_manyParticlesRepulsion Debug.xcscheme │ │ │ └── 03_manyParticlesRepulsion Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Mover.cpp │ │ ├── Mover.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 04_AttractionRepulsion │ ├── 04_AttractionRepulsion.cbp │ ├── 04_AttractionRepulsion.sln │ ├── 04_AttractionRepulsion.vcxproj │ ├── 04_AttractionRepulsion.vcxproj.filters │ ├── 04_AttractionRepulsion.vcxproj.user │ ├── 04_AttractionRepulsion.workspace │ ├── 04_AttractionRepulsion.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 04_AttractionRepulsion Debug.xcscheme │ │ │ └── 04_AttractionRepulsion Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Mover.cpp │ │ ├── Mover.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 05_oneParticle │ ├── 05_oneParticle.cbp │ ├── 05_oneParticle.sln │ ├── 05_oneParticle.vcxproj │ ├── 05_oneParticle.vcxproj.filters │ ├── 05_oneParticle.vcxproj.user │ ├── 05_oneParticle.workspace │ ├── 05_oneParticle.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 05_oneParticle Debug.xcscheme │ │ │ └── 05_oneParticle Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Particle.cpp │ │ ├── Particle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 06_manyParticles │ ├── 06_manyParticles.cbp │ ├── 06_manyParticles.sln │ ├── 06_manyParticles.vcxproj │ ├── 06_manyParticles.vcxproj.filters │ ├── 06_manyParticles.vcxproj.user │ ├── 06_manyParticles.workspace │ ├── 06_manyParticles.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 06_manyParticles Debug.xcscheme │ │ │ └── 06_manyParticles Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Particle.cpp │ │ ├── Particle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 07_particleSystems │ ├── 07_particleSystems.cbp │ ├── 07_particleSystems.sln │ ├── 07_particleSystems.vcxproj │ ├── 07_particleSystems.vcxproj.filters │ ├── 07_particleSystems.vcxproj.user │ ├── 07_particleSystems.workspace │ ├── 07_particleSystems.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 07_particleSystems Debug.xcscheme │ │ │ └── 07_particleSystems Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Particle.cpp │ │ ├── Particle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particleSystem.cpp │ │ └── particleSystem.h ├── 08_connectedParticles │ ├── 08_connectedParticles.cbp │ ├── 08_connectedParticles.sln │ ├── 08_connectedParticles.vcxproj │ ├── 08_connectedParticles.vcxproj.filters │ ├── 08_connectedParticles.vcxproj.user │ ├── 08_connectedParticles.workspace │ ├── 08_connectedParticles.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 08_connectedParticles Debug.xcscheme │ │ │ └── 08_connectedParticles Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Particle.cpp │ │ ├── Particle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h └── README.md ├── week_06 ├── 01_particlesDrag │ ├── 01_particlesDrag.cbp │ ├── 01_particlesDrag.sln │ ├── 01_particlesDrag.vcxproj │ ├── 01_particlesDrag.vcxproj.filters │ ├── 01_particlesDrag.vcxproj.user │ ├── 01_particlesDrag.workspace │ ├── 01_particlesDrag.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 01_particlesDrag Debug.xcscheme │ │ │ └── 01_particlesDrag Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Particle.cpp │ │ ├── Particle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 02_particlesShapes │ ├── 02_particlesShapes.cbp │ ├── 02_particlesShapes.sln │ ├── 02_particlesShapes.vcxproj │ ├── 02_particlesShapes.vcxproj.filters │ ├── 02_particlesShapes.vcxproj.user │ ├── 02_particlesShapes.workspace │ ├── 02_particlesShapes.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 02_particlesShapes Debug.xcscheme │ │ │ └── 02_particlesShapes Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Particle.cpp │ │ ├── Particle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particleSystem.cpp │ │ └── particleSystem.h ├── 03_particlesTriangles │ ├── 03_particlesTriangles.cbp │ ├── 03_particlesTriangles.sln │ ├── 03_particlesTriangles.vcxproj │ ├── 03_particlesTriangles.vcxproj.filters │ ├── 03_particlesTriangles.vcxproj.user │ ├── 03_particlesTriangles.workspace │ ├── 03_particlesTriangles.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 03_particlesTriangles Debug.xcscheme │ │ │ └── 03_particlesTriangles Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Particle.cpp │ │ ├── Particle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particleSystem.cpp │ │ └── particleSystem.h ├── 04_particlesAttractionSpiral │ ├── 04_particlesAttractionSpiral.cbp │ ├── 04_particlesAttractionSpiral.sln │ ├── 04_particlesAttractionSpiral.vcxproj │ ├── 04_particlesAttractionSpiral.vcxproj.filters │ ├── 04_particlesAttractionSpiral.vcxproj.user │ ├── 04_particlesAttractionSpiral.workspace │ ├── 04_particlesAttractionSpiral.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 04_particlesAttractionSpiral Debug.xcscheme │ │ │ └── 04_particlesAttractionSpiral Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Mover.cpp │ │ ├── Mover.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 05_blendMode │ ├── 05_blendMode.cbp │ ├── 05_blendMode.sln │ ├── 05_blendMode.vcxproj │ ├── 05_blendMode.vcxproj.filters │ ├── 05_blendMode.vcxproj.user │ ├── 05_blendMode.workspace │ ├── 05_blendMode.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 05_blendMode Debug.xcscheme │ │ │ └── 05_blendMode Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ ├── .gitkeep │ │ │ └── sprite.png │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Particle.cpp │ │ ├── Particle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particleSystem.cpp │ │ └── particleSystem.h ├── 06_pointersAndReferences │ ├── 06_pointersAndReferences.cbp │ ├── 06_pointersAndReferences.sln │ ├── 06_pointersAndReferences.vcxproj │ ├── 06_pointersAndReferences.vcxproj.filters │ ├── 06_pointersAndReferences.vcxproj.user │ ├── 06_pointersAndReferences.workspace │ ├── 06_pointersAndReferences.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 06_pointersAndReferences Debug.xcscheme │ │ │ └── 06_pointersAndReferences Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h └── README.md ├── week_07 ├── 01_steer │ ├── 01_steer.cbp │ ├── 01_steer.sln │ ├── 01_steer.vcxproj │ ├── 01_steer.vcxproj.filters │ ├── 01_steer.vcxproj.user │ ├── 01_steer.workspace │ ├── 01_steer.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 01_steer Debug.xcscheme │ │ │ └── 01_steer Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Vehicle.cpp │ │ ├── Vehicle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 02_avoidWalls │ ├── 02_avoidWalls.cbp │ ├── 02_avoidWalls.sln │ ├── 02_avoidWalls.vcxproj │ ├── 02_avoidWalls.vcxproj.filters │ ├── 02_avoidWalls.vcxproj.user │ ├── 02_avoidWalls.workspace │ ├── 02_avoidWalls.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 02_avoidWalls Debug.xcscheme │ │ │ └── 02_avoidWalls Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Vehicle.cpp │ │ ├── Vehicle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 03_flowField │ ├── 03_flowField.cbp │ ├── 03_flowField.sln │ ├── 03_flowField.vcxproj │ ├── 03_flowField.vcxproj.filters │ ├── 03_flowField.vcxproj.user │ ├── 03_flowField.workspace │ ├── 03_flowField.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 03_flowField Debug.xcscheme │ │ │ └── 03_flowField Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── flowField.cpp │ │ ├── flowField.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h └── README.md ├── week_08 ├── 01_flowFieldImage │ ├── 01_flowFieldImage.cbp │ ├── 01_flowFieldImage.sln │ ├── 01_flowFieldImage.vcxproj │ ├── 01_flowFieldImage.vcxproj.filters │ ├── 01_flowFieldImage.vcxproj.user │ ├── 01_flowFieldImage.workspace │ ├── 01_flowFieldImage.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 01_flowFieldImage Debug.xcscheme │ │ │ └── 01_flowFieldImage Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ ├── .gitkeep │ │ │ └── morrison.jpg │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── flowField.cpp │ │ ├── flowField.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ ├── ofApp.h │ │ ├── particle.cpp │ │ └── particle.h ├── 02_pathFollowing │ ├── 02_pathFollowing.cbp │ ├── 02_pathFollowing.sln │ ├── 02_pathFollowing.vcxproj │ ├── 02_pathFollowing.vcxproj.filters │ ├── 02_pathFollowing.vcxproj.user │ ├── 02_pathFollowing.workspace │ ├── 02_pathFollowing.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 02_pathFollowing Debug.xcscheme │ │ │ └── 02_pathFollowing Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Path.cpp │ │ ├── Path.h │ │ ├── Vehicle.cpp │ │ ├── Vehicle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 03_groupBehavior │ ├── 03_particle_particle.cbp │ ├── 03_particle_particle.sln │ ├── 03_particle_particle.vcxproj │ ├── 03_particle_particle.vcxproj.filters │ ├── 03_particle_particle.vcxproj.user │ ├── 03_particle_particle.workspace │ ├── 03_particle_particle.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 03_particle_particle Debug.xcscheme │ │ │ └── 03_particle_particle Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Particle.cpp │ │ ├── Particle.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h └── 04_flocking │ ├── 04_flocking.cbp │ ├── 04_flocking.sln │ ├── 04_flocking.vcxproj │ ├── 04_flocking.vcxproj.filters │ ├── 04_flocking.vcxproj.user │ ├── 04_flocking.workspace │ ├── 04_flocking.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── 04_flocking Debug.xcscheme │ │ └── 04_flocking Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ └── data │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ ├── Boid.cpp │ ├── Boid.h │ ├── Flock.cpp │ ├── Flock.h │ ├── main.cpp │ ├── ofApp.cpp │ └── ofApp.h ├── week_09 ├── 01_3DBasics │ ├── 01_3DBasics.cbp │ ├── 01_3DBasics.sln │ ├── 01_3DBasics.vcxproj │ ├── 01_3DBasics.vcxproj.filters │ ├── 01_3DBasics.vcxproj.user │ ├── 01_3DBasics.workspace │ ├── 01_3DBasics.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 01_3DBasics Debug.xcscheme │ │ │ └── 01_3DBasics Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 02_meshBasics │ ├── 02_meshBasics.cbp │ ├── 02_meshBasics.sln │ ├── 02_meshBasics.vcxproj │ ├── 02_meshBasics.vcxproj.filters │ ├── 02_meshBasics.vcxproj.user │ ├── 02_meshBasics.workspace │ ├── 02_meshBasics.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 02_meshBasics Debug.xcscheme │ │ │ └── 02_meshBasics Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 03_meshAndCam │ ├── 03_meshAndCam.cbp │ ├── 03_meshAndCam.sln │ ├── 03_meshAndCam.vcxproj │ ├── 03_meshAndCam.vcxproj.filters │ ├── 03_meshAndCam.vcxproj.user │ ├── 03_meshAndCam.workspace │ ├── 03_meshAndCam.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 03_meshAndCam Debug.xcscheme │ │ │ └── 03_meshAndCam Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ ├── .gitkeep │ │ │ └── mfadt.png │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 04_meshFacesNormals │ ├── 04_meshFacesNormals.cbp │ ├── 04_meshFacesNormals.sln │ ├── 04_meshFacesNormals.vcxproj │ ├── 04_meshFacesNormals.vcxproj.filters │ ├── 04_meshFacesNormals.vcxproj.user │ ├── 04_meshFacesNormals.workspace │ ├── 04_meshFacesNormals.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 04_meshFacesNormals Debug.xcscheme │ │ │ └── 04_meshFacesNormals Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h ├── 05_3Dflocking │ ├── 05_3Dflocking.cbp │ ├── 05_3Dflocking.sln │ ├── 05_3Dflocking.vcxproj │ ├── 05_3Dflocking.vcxproj.filters │ ├── 05_3Dflocking.vcxproj.user │ ├── 05_3Dflocking.workspace │ ├── 05_3Dflocking.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── 05_3Dflocking Debug.xcscheme │ │ │ └── 05_3Dflocking Release.xcscheme │ ├── Makefile │ ├── Project.xcconfig │ ├── addons.make │ ├── bin │ │ └── data │ │ │ └── .gitkeep │ ├── config.make │ ├── icon.rc │ ├── openFrameworks-Info.plist │ └── src │ │ ├── Boid.cpp │ │ ├── Boid.h │ │ ├── Flock.cpp │ │ ├── Flock.h │ │ ├── main.cpp │ │ ├── ofApp.cpp │ │ └── ofApp.h └── README.md └── week_10 ├── 01_factorial ├── 01_factorial.cbp ├── 01_factorial.sln ├── 01_factorial.vcxproj ├── 01_factorial.vcxproj.filters ├── 01_factorial.vcxproj.user ├── 01_factorial.workspace ├── 01_factorial.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── 01_factorial Debug.xcscheme │ │ └── 01_factorial Release.xcscheme ├── Makefile ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── config.make ├── icon.rc ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── ofApp.cpp │ └── ofApp.h ├── 02_recursiveCircles ├── 02_recursiveCircles.cbp ├── 02_recursiveCircles.sln ├── 02_recursiveCircles.vcxproj ├── 02_recursiveCircles.vcxproj.filters ├── 02_recursiveCircles.vcxproj.user ├── 02_recursiveCircles.workspace ├── 02_recursiveCircles.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── 02_recursiveCircles Debug.xcscheme │ │ └── 02_recursiveCircles Release.xcscheme ├── Makefile ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── config.make ├── icon.rc ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── ofApp.cpp │ └── ofApp.h ├── 03_cantorLines ├── 03_cantorLines.cbp ├── 03_cantorLines.sln ├── 03_cantorLines.vcxproj ├── 03_cantorLines.vcxproj.filters ├── 03_cantorLines.vcxproj.user ├── 03_cantorLines.workspace ├── 03_cantorLines.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── 03_cantorLines Debug.xcscheme │ │ └── 03_cantorLines Release.xcscheme ├── Makefile ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── config.make ├── icon.rc ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── ofApp.cpp │ └── ofApp.h ├── 04_cantorLineVariation ├── 04_cantorLineVariation.cbp ├── 04_cantorLineVariation.sln ├── 04_cantorLineVariation.vcxproj ├── 04_cantorLineVariation.vcxproj.filters ├── 04_cantorLineVariation.vcxproj.user ├── 04_cantorLineVariation.workspace ├── 04_cantorLineVariation.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── 04_cantorLineVariation Debug.xcscheme │ │ └── 04_cantorLineVariation Release.xcscheme ├── Makefile ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── config.make ├── icon.rc ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── ofApp.cpp │ └── ofApp.h ├── 05_kochFractal ├── 05_kochFractal.cbp ├── 05_kochFractal.sln ├── 05_kochFractal.vcxproj ├── 05_kochFractal.vcxproj.filters ├── 05_kochFractal.vcxproj.user ├── 05_kochFractal.workspace ├── 05_kochFractal.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── 05_kochFractal Debug.xcscheme │ │ └── 05_kochFractal Release.xcscheme ├── Makefile ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── config.make ├── icon.rc ├── openFrameworks-Info.plist └── src │ ├── kochFractal.cpp │ ├── kochFractal.h │ ├── kochLine.cpp │ ├── kochLine.h │ ├── main.cpp │ ├── ofApp.cpp │ └── ofApp.h ├── 06_recursiveTree ├── 06_recursiveTree.cbp ├── 06_recursiveTree.sln ├── 06_recursiveTree.vcxproj ├── 06_recursiveTree.vcxproj.filters ├── 06_recursiveTree.vcxproj.user ├── 06_recursiveTree.workspace ├── 06_recursiveTree.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── 06_recursiveTree Debug.xcscheme │ │ └── 06_recursiveTree Release.xcscheme ├── Makefile ├── Project.xcconfig ├── addons.make ├── bin │ └── data │ │ └── .gitkeep ├── config.make ├── icon.rc ├── openFrameworks-Info.plist └── src │ ├── main.cpp │ ├── ofApp.cpp │ └── ofApp.h └── 07_L_System ├── 07_L_System.cbp ├── 07_L_System.sln ├── 07_L_System.vcxproj ├── 07_L_System.vcxproj.filters ├── 07_L_System.vcxproj.user ├── 07_L_System.workspace ├── 07_L_System.xcodeproj ├── project.pbxproj └── xcshareddata │ └── xcschemes │ ├── 07_L_System Debug.xcscheme │ └── 07_L_System Release.xcscheme ├── Makefile ├── Project.xcconfig ├── addons.make ├── bin └── data │ └── .gitkeep ├── config.make ├── icon.rc ├── openFrameworks-Info.plist └── src ├── LSystem.cpp ├── LSystem.h ├── Rule.cpp ├── Rule.h ├── Turtle.cpp ├── Turtle.h ├── main.cpp ├── ofApp.cpp └── ofApp.h /week_01/01_simpleClass/01_simpleClass.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_01/01_simpleClass/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 | -------------------------------------------------------------------------------- /week_01/01_simpleClass/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_01/01_simpleClass/addons.make -------------------------------------------------------------------------------- /week_01/01_simpleClass/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_01/01_simpleClass/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_01/01_simpleClass/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_01/01_simpleClass/src/customCircle.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.cpp 3 | // 01_simpleClass 4 | // 5 | // Created by Bernardo Santos Schorr on 1/31/15. 6 | // 7 | // 8 | 9 | #include "customCircle.h" 10 | 11 | customCircle::customCircle() { 12 | 13 | } 14 | 15 | void customCircle::setup(float _posX, float _posY) { 16 | posX = _posX; 17 | posY = _posY; 18 | } 19 | 20 | void customCircle::update() { 21 | 22 | posX++; 23 | 24 | } 25 | 26 | void customCircle::draw() { 27 | 28 | ofCircle(posX, posY, 10); 29 | 30 | } -------------------------------------------------------------------------------- /week_01/01_simpleClass/src/customCircle.h: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.h 3 | // 01_simpleClass 4 | // 5 | // Created by Bernardo Santos Schorr on 1/31/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class customCircle { 14 | public: 15 | customCircle(); 16 | void setup(float _posX, float _posY); 17 | void update(); 18 | void draw(); 19 | 20 | private: 21 | float posX, posY; 22 | 23 | }; 24 | -------------------------------------------------------------------------------- /week_01/01_simpleClass/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_01/01_simpleClass/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "customCircle.h" 5 | 6 | class ofApp : public ofBaseApp{ 7 | 8 | public: 9 | void setup(); 10 | void update(); 11 | void draw(); 12 | 13 | void keyPressed(int key); 14 | void keyReleased(int key); 15 | void mouseMoved(int x, int y ); 16 | void mouseDragged(int x, int y, int button); 17 | void mousePressed(int x, int y, int button); 18 | void mouseReleased(int x, int y, int button); 19 | void windowResized(int w, int h); 20 | void dragEvent(ofDragInfo dragInfo); 21 | void gotMessage(ofMessage msg); 22 | 23 | customCircle myCircle; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week_01/02_interpolation/02_interpolation.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_01/02_interpolation/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 | -------------------------------------------------------------------------------- /week_01/02_interpolation/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_01/02_interpolation/addons.make -------------------------------------------------------------------------------- /week_01/02_interpolation/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_01/02_interpolation/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_01/02_interpolation/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_01/02_interpolation/src/customCircle.h: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.h 3 | // 01_simpleClass 4 | // 5 | // Created by Bernardo Santos Schorr on 1/31/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class customCircle { 14 | public: 15 | customCircle(); 16 | void setup(ofVec2f _initPos, ofVec2f _finalPos); 17 | void update(float pct); 18 | void draw(); 19 | 20 | private: 21 | ofVec2f initPos, finalPos, currentPos; 22 | float pct; 23 | 24 | }; 25 | -------------------------------------------------------------------------------- /week_01/02_interpolation/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_01/03_interpolationClick/03_interpolationClick.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_01/03_interpolationClick/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 | -------------------------------------------------------------------------------- /week_01/03_interpolationClick/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_01/03_interpolationClick/addons.make -------------------------------------------------------------------------------- /week_01/03_interpolationClick/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_01/03_interpolationClick/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_01/03_interpolationClick/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_01/03_interpolationClick/src/customCircle.h: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.h 3 | // 01_simpleClass 4 | // 5 | // Created by Bernardo Santos Schorr on 1/31/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class customCircle { 14 | public: 15 | customCircle(); 16 | void setup(ofVec2f _initPos, ofVec2f _finalPos); 17 | void update(float pct); 18 | void draw(); 19 | void setNewPosition(ofVec2f _newPos); 20 | 21 | private: 22 | ofVec2f initPos, finalPos, currentPos; 23 | float pct; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week_01/03_interpolationClick/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_01/04_interpolationEase/04_interpolationEase.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_01/04_interpolationEase/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 | -------------------------------------------------------------------------------- /week_01/04_interpolationEase/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_01/04_interpolationEase/addons.make -------------------------------------------------------------------------------- /week_01/04_interpolationEase/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_01/04_interpolationEase/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_01/04_interpolationEase/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_01/04_interpolationEase/src/customCircle.h: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.h 3 | // 01_simpleClass 4 | // 5 | // Created by Bernardo Santos Schorr on 1/31/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class customCircle { 14 | public: 15 | customCircle(); 16 | void setup(ofVec2f _initPos, ofVec2f _finalPos); 17 | 18 | //This is using Quad easing functions... try using Cubic, Quart, Quint... 19 | void linear(float _pct); 20 | void easeOut(float _pct); 21 | void easeIn(float _pct); 22 | void draw(); 23 | 24 | private: 25 | ofVec2f initPos, finalPos, currentPos; 26 | float pct; 27 | 28 | }; 29 | -------------------------------------------------------------------------------- /week_01/04_interpolationEase/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_01/05_interpolationPenner/05_interpolationPenner.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_01/05_interpolationPenner/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 | -------------------------------------------------------------------------------- /week_01/05_interpolationPenner/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_01/05_interpolationPenner/addons.make -------------------------------------------------------------------------------- /week_01/05_interpolationPenner/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_01/05_interpolationPenner/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_01/05_interpolationPenner/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_01/05_interpolationPenner/src/customCircle.h: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.h 3 | // 01_simpleClass 4 | // 5 | // Created by Bernardo Santos Schorr on 1/31/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class customCircle { 14 | public: 15 | customCircle(); 16 | void setup(ofVec2f _initPos, ofVec2f _finalPos); 17 | void update(float pct); 18 | void draw(); 19 | void setNewPosition(ofVec2f _newPos); 20 | 21 | private: 22 | ofVec2f initPos, finalPos, currentPos; 23 | float pct; 24 | 25 | }; 26 | 27 | -------------------------------------------------------------------------------- /week_01/05_interpolationPenner/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_01/06_interpolationXeno/06_interpolationXeno.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_01/06_interpolationXeno/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 | -------------------------------------------------------------------------------- /week_01/06_interpolationXeno/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_01/06_interpolationXeno/addons.make -------------------------------------------------------------------------------- /week_01/06_interpolationXeno/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_01/06_interpolationXeno/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_01/06_interpolationXeno/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_01/06_interpolationXeno/src/customCircle.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.cpp 3 | // 01_simpleClass 4 | // 5 | // Created by Bernardo Santos Schorr on 1/31/15. 6 | // 7 | // 8 | 9 | #include "customCircle.h" 10 | 11 | customCircle::customCircle() { 12 | 13 | } 14 | 15 | void customCircle::setup(ofVec2f _initPos) { 16 | currentPos = _initPos; 17 | } 18 | 19 | void customCircle::update(ofVec2f _mouse) { 20 | 21 | pct = 0.05; 22 | currentPos = currentPos * (1 - pct) + _mouse * pct; 23 | 24 | } 25 | 26 | void customCircle::draw() { 27 | 28 | ofCircle(currentPos, 10); 29 | ofDrawBitmapString("Move your mouse around.", 30, 30); 30 | } -------------------------------------------------------------------------------- /week_01/06_interpolationXeno/src/customCircle.h: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.h 3 | // 01_simpleClass 4 | // 5 | // Created by Bernardo Santos Schorr on 1/31/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class customCircle { 14 | public: 15 | customCircle(); 16 | void setup(ofVec2f _initPos); 17 | void update(ofVec2f _mouse); 18 | void draw(); 19 | 20 | private: 21 | ofVec2f currentPos; 22 | float pct; 23 | 24 | }; 25 | -------------------------------------------------------------------------------- /week_01/06_interpolationXeno/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_02/01_vectorXeno/01_vectorXeno.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_02/01_vectorXeno/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 | -------------------------------------------------------------------------------- /week_02/01_vectorXeno/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_02/01_vectorXeno/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_02/01_vectorXeno/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_02/01_vectorXeno/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_02/01_vectorXeno/src/customCircle.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.cpp 3 | // 01_vectorXeno 4 | // 5 | // Created by Bernardo Santos Schorr on 2/8/15. 6 | // 7 | // 8 | 9 | #include "customCircle.h" 10 | 11 | void customCircle::setup() { 12 | 13 | pos.set(0, 0); 14 | 15 | } 16 | 17 | void customCircle::update(ofVec2f _pos) { 18 | 19 | pos = pos * 0.9 + _pos * 0.1; 20 | 21 | } 22 | 23 | void customCircle::draw() { 24 | 25 | ofCircle(pos, 10); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /week_02/01_vectorXeno/src/customCircle.h: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.h 3 | // 01_vectorXeno 4 | // 5 | // Created by Bernardo Santos Schorr on 2/8/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class customCircle { 14 | public: 15 | 16 | void setup(); 17 | void update(ofVec2f _pos); 18 | void draw(); 19 | 20 | ofVec2f pos; 21 | 22 | }; 23 | -------------------------------------------------------------------------------- /week_02/01_vectorXeno/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_02/01_vectorXeno/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "customCircle.h" 5 | 6 | class ofApp : public ofBaseApp{ 7 | 8 | public: 9 | void setup(); 10 | void update(); 11 | void draw(); 12 | 13 | void keyPressed(int key); 14 | void keyReleased(int key); 15 | void mouseMoved(int x, int y ); 16 | void mouseDragged(int x, int y, int button); 17 | void mousePressed(int x, int y, int button); 18 | void mouseReleased(int x, int y, int button); 19 | void windowResized(int w, int h); 20 | void dragEvent(ofDragInfo dragInfo); 21 | void gotMessage(ofMessage msg); 22 | 23 | vector xenoList; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week_02/02_shapes/02_shapes.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_02/02_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 | -------------------------------------------------------------------------------- /week_02/02_shapes/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_02/02_shapes/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_02/02_shapes/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_02/02_shapes/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_02/02_shapes/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_02/02_shapes/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 | bool bIsFill; 23 | bool bRectMode; 24 | float circleRes; 25 | 26 | }; 27 | -------------------------------------------------------------------------------- /week_02/03_randomWalker/03_randomWalker.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_02/03_randomWalker/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 | -------------------------------------------------------------------------------- /week_02/03_randomWalker/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_02/03_randomWalker/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_02/03_randomWalker/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_02/03_randomWalker/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_02/03_randomWalker/src/customCircle.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.cpp 3 | // 03_randomWalker 4 | // 5 | // Created by Bernardo Santos Schorr on 2/8/15. 6 | // 7 | // 8 | 9 | #include "customCircle.h" 10 | 11 | void customCircle::setup() { 12 | 13 | pos.set(ofGetWindowSize()/2); 14 | 15 | } 16 | 17 | void customCircle::update() { 18 | 19 | choice = ofRandom(4); 20 | if (choice == 0) pos.x ++; 21 | if (choice == 1) pos.y ++; 22 | if (choice == 2) pos.x --; 23 | if (choice == 3) pos.y --; 24 | 25 | } 26 | 27 | void customCircle::draw() { 28 | 29 | ofRect(pos, 1, 1); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /week_02/03_randomWalker/src/customCircle.h: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.h 3 | // 03_randomWalker 4 | // 5 | // Created by Bernardo Santos Schorr on 2/8/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class customCircle { 14 | public: 15 | 16 | void setup(); 17 | void update(); 18 | void draw(); 19 | 20 | ofVec2f pos; 21 | int choice; 22 | 23 | }; 24 | -------------------------------------------------------------------------------- /week_02/03_randomWalker/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_02/03_randomWalker/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "customCircle.h" 5 | 6 | class ofApp : public ofBaseApp{ 7 | 8 | public: 9 | void setup(); 10 | void update(); 11 | void draw(); 12 | 13 | void keyPressed(int key); 14 | void keyReleased(int key); 15 | void mouseMoved(int x, int y ); 16 | void mouseDragged(int x, int y, int button); 17 | void mousePressed(int x, int y, int button); 18 | void mouseReleased(int x, int y, int button); 19 | void windowResized(int w, int h); 20 | void dragEvent(ofDragInfo dragInfo); 21 | void gotMessage(ofMessage msg); 22 | 23 | customCircle myCirc; 24 | }; 25 | -------------------------------------------------------------------------------- /week_02/04_randomWalkerTendency/04_randomWalkerTendency.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_02/04_randomWalkerTendency/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 | -------------------------------------------------------------------------------- /week_02/04_randomWalkerTendency/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_02/04_randomWalkerTendency/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_02/04_randomWalkerTendency/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_02/04_randomWalkerTendency/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_02/04_randomWalkerTendency/src/customCircle.h: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.h 3 | // 03_randomWalker 4 | // 5 | // Created by Bernardo Santos Schorr on 2/8/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class customCircle { 14 | public: 15 | 16 | void setup(); 17 | void update(); 18 | void draw(); 19 | 20 | ofVec2f pos; 21 | int choice; 22 | 23 | }; 24 | -------------------------------------------------------------------------------- /week_02/04_randomWalkerTendency/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_02/04_randomWalkerTendency/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "customCircle.h" 5 | 6 | class ofApp : public ofBaseApp{ 7 | 8 | public: 9 | void setup(); 10 | void update(); 11 | void draw(); 12 | 13 | void keyPressed(int key); 14 | void keyReleased(int key); 15 | void mouseMoved(int x, int y ); 16 | void mouseDragged(int x, int y, int button); 17 | void mousePressed(int x, int y, int button); 18 | void mouseReleased(int x, int y, int button); 19 | void windowResized(int w, int h); 20 | void dragEvent(ofDragInfo dragInfo); 21 | void gotMessage(ofMessage msg); 22 | 23 | customCircle myCirc; 24 | }; 25 | -------------------------------------------------------------------------------- /week_02/05_gaussian/05_gaussian.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_02/05_gaussian/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 | -------------------------------------------------------------------------------- /week_02/05_gaussian/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_02/05_gaussian/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_02/05_gaussian/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_02/05_gaussian/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_02/05_gaussian/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_02/05_gaussian/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "ofMain.h" 3 | 4 | class ofApp : public ofBaseApp{ 5 | 6 | public: 7 | void setup(); 8 | void update(); 9 | void draw(); 10 | 11 | void keyPressed(int key); 12 | void keyReleased(int key); 13 | void mouseMoved(int x, int y ); 14 | void mouseDragged(int x, int y, int button); 15 | void mousePressed(int x, int y, int button); 16 | void mouseReleased(int x, int y, int button); 17 | void windowResized(int w, int h); 18 | void dragEvent(ofDragInfo dragInfo); 19 | void gotMessage(ofMessage msg); 20 | 21 | float ofxGaussian(); 22 | float x; 23 | 24 | }; 25 | -------------------------------------------------------------------------------- /week_02/06_noise/06_noise.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_02/06_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 | -------------------------------------------------------------------------------- /week_02/06_noise/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_02/06_noise/addons.make -------------------------------------------------------------------------------- /week_02/06_noise/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_02/06_noise/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_02/06_noise/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_02/06_noise/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_02/06_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 | ofPixels noisePixels; 23 | ofImage noiseImg; 24 | float mult; 25 | 26 | }; 27 | -------------------------------------------------------------------------------- /week_02/07_randomGaussianNoisePlotter/07_randomGaussianNoisePlotter.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_02/07_randomGaussianNoisePlotter/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 | -------------------------------------------------------------------------------- /week_02/07_randomGaussianNoisePlotter/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_02/07_randomGaussianNoisePlotter/addons.make -------------------------------------------------------------------------------- /week_02/07_randomGaussianNoisePlotter/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_02/07_randomGaussianNoisePlotter/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_02/07_randomGaussianNoisePlotter/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_02/07_randomGaussianNoisePlotter/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_02/08_noiseWalk/08_noiseWalk.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_02/08_noiseWalk/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 | -------------------------------------------------------------------------------- /week_02/08_noiseWalk/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_02/08_noiseWalk/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_02/08_noiseWalk/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_02/08_noiseWalk/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_02/08_noiseWalk/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_02/08_noiseWalk/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 | ofVec2f pos; 23 | float yOffset; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week_03/01_noiseLandscape/01_noiseLandscape.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_03/01_noiseLandscape/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 | -------------------------------------------------------------------------------- /week_03/01_noiseLandscape/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_03/01_noiseLandscape/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_03/01_noiseLandscape/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_03/01_noiseLandscape/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_03/01_noiseLandscape/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_03/01_noiseLandscape/src/mountain.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // mountain.cpp 3 | // 01_noiseLandscape 4 | // 5 | // Created by Bernardo Santos Schorr on 2/16/15. 6 | // 7 | // 8 | 9 | #include "mountain.h" 10 | 11 | void Mountain::drawMountain(float _x, float _y, float _w, float _h, float _alpha) { 12 | 13 | float x1 = _x - _w/2; 14 | float y1 = _y; 15 | 16 | float x2 = _x + _w/2; 17 | float y2 = _y; 18 | 19 | float x3 = _x; 20 | float y3 = _y - _h; 21 | 22 | ofSetColor(0, 255, 0, _alpha); 23 | 24 | ofTriangle(x1, y1, x2, y2, x3, y3); 25 | 26 | } -------------------------------------------------------------------------------- /week_03/01_noiseLandscape/src/mountain.h: -------------------------------------------------------------------------------- 1 | // 2 | // mountain.h 3 | // 01_noiseLandscape 4 | // 5 | // Created by Bernardo Santos Schorr on 2/16/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Mountain { 14 | public: 15 | 16 | void drawMountain(float _x, float _y, float _w, float _h, float _alpha); 17 | 18 | }; 19 | -------------------------------------------------------------------------------- /week_03/01_noiseLandscape/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "mountain.h" 5 | 6 | class ofApp : public ofBaseApp{ 7 | 8 | public: 9 | void setup(); 10 | void update(); 11 | void draw(); 12 | 13 | void keyPressed(int key); 14 | void keyReleased(int key); 15 | void mouseMoved(int x, int y ); 16 | void mouseDragged(int x, int y, int button); 17 | void mousePressed(int x, int y, int button); 18 | void mouseReleased(int x, int y, int button); 19 | void windowResized(int w, int h); 20 | void dragEvent(ofDragInfo dragInfo); 21 | void gotMessage(ofMessage msg); 22 | 23 | float mult; 24 | float z; 25 | 26 | }; 27 | -------------------------------------------------------------------------------- /week_03/02_radiansDegrees/02_radiansDegrees.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_03/02_radiansDegrees/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 | -------------------------------------------------------------------------------- /week_03/02_radiansDegrees/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_03/02_radiansDegrees/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_03/02_radiansDegrees/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_03/02_radiansDegrees/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_03/02_radiansDegrees/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_03/03_sineCosine/03_sineCosine.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_03/03_sineCosine/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 | -------------------------------------------------------------------------------- /week_03/03_sineCosine/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_03/03_sineCosine/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_03/03_sineCosine/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_03/03_sineCosine/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_03/03_sineCosine/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_03/04_sineSizeColor/04_sineSizeColor.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_03/04_sineSizeColor/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 | -------------------------------------------------------------------------------- /week_03/04_sineSizeColor/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_03/04_sineSizeColor/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_03/04_sineSizeColor/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_03/04_sineSizeColor/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_03/04_sineSizeColor/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_03/04_sineSizeColor/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 size, alpha; 23 | 24 | }; 25 | -------------------------------------------------------------------------------- /week_03/05_manySines/05_manySines.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_03/05_manySines/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 | -------------------------------------------------------------------------------- /week_03/05_manySines/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_03/05_manySines/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_03/05_manySines/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_03/05_manySines/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_03/05_manySines/src/customCircle.h: -------------------------------------------------------------------------------- 1 | // 2 | // customCircle.h 3 | // 04_manySines 4 | // 5 | // Created by Bernardo Santos Schorr on 2/16/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class customCircle { 14 | public: 15 | 16 | void setup(float _offset); 17 | void update(); 18 | void draw(); 19 | 20 | float offset; 21 | float size; 22 | float lineWidth; 23 | }; 24 | -------------------------------------------------------------------------------- /week_03/05_manySines/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_03/05_manySines/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "customCircle.h" 5 | 6 | class ofApp : public ofBaseApp{ 7 | 8 | public: 9 | void setup(); 10 | void update(); 11 | void draw(); 12 | 13 | void keyPressed(int key); 14 | void keyReleased(int key); 15 | void mouseMoved(int x, int y ); 16 | void mouseDragged(int x, int y, int button); 17 | void mousePressed(int x, int y, int button); 18 | void mouseReleased(int x, int y, int button); 19 | void windowResized(int w, int h); 20 | void dragEvent(ofDragInfo dragInfo); 21 | void gotMessage(ofMessage msg); 22 | 23 | vector circleList; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week_03/06_simpleHarmony/06_simpleHarmony.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_03/06_simpleHarmony/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 | -------------------------------------------------------------------------------- /week_03/06_simpleHarmony/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_03/06_simpleHarmony/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_03/06_simpleHarmony/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_03/06_simpleHarmony/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_03/06_simpleHarmony/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_03/06_simpleHarmony/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 | -------------------------------------------------------------------------------- /week_03/07_modulation/07_modulation.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_03/07_modulation/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 | -------------------------------------------------------------------------------- /week_03/07_modulation/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_03/07_modulation/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_03/07_modulation/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_03/07_modulation/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_03/07_modulation/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_03/08_lissajousCurves/08_lissajousCurves.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_03/08_lissajousCurves/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 | -------------------------------------------------------------------------------- /week_03/08_lissajousCurves/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_03/08_lissajousCurves/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_03/08_lissajousCurves/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_03/08_lissajousCurves/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_03/08_lissajousCurves/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_03/08_lissajousCurves/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 angle; 23 | ofVec2f pos, prevPos; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week_03/09_atan/09_atan.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_03/09_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 | -------------------------------------------------------------------------------- /week_03/09_atan/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_03/09_atan/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_03/09_atan/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_03/09_atan/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_03/09_atan/src/arrow.h: -------------------------------------------------------------------------------- 1 | // 2 | // arrow.h 3 | // 09_atan 4 | // 5 | // Created by Bernardo Santos Schorr on 2/17/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Arrow { 14 | public: 15 | 16 | void setup(); 17 | void update(float _x, float _y); 18 | void draw(); 19 | 20 | ofVec2f pos; 21 | float rot; 22 | 23 | }; 24 | -------------------------------------------------------------------------------- /week_03/09_atan/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_03/09_atan/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "arrow.h" 5 | 6 | class ofApp : public ofBaseApp{ 7 | 8 | public: 9 | void setup(); 10 | void update(); 11 | void draw(); 12 | 13 | void keyPressed(int key); 14 | void keyReleased(int key); 15 | void mouseMoved(int x, int y ); 16 | void mouseDragged(int x, int y, int button); 17 | void mousePressed(int x, int y, int button); 18 | void mouseReleased(int x, int y, int button); 19 | void windowResized(int w, int h); 20 | void dragEvent(ofDragInfo dragInfo); 21 | void gotMessage(ofMessage msg); 22 | 23 | Arrow myArrow; 24 | 25 | 26 | 27 | }; 28 | -------------------------------------------------------------------------------- /week_04/01_vectors/01_vectors.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_04/01_vectors/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 | -------------------------------------------------------------------------------- /week_04/01_vectors/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_04/01_vectors/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_04/01_vectors/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_04/01_vectors/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_04/01_vectors/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_04/02_gravity/02_gravity.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_04/02_gravity/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 | -------------------------------------------------------------------------------- /week_04/02_gravity/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_04/02_gravity/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_04/02_gravity/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_04/02_gravity/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_04/02_gravity/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_04/03_moverClass/03_moverClass.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_04/03_moverClass/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 | -------------------------------------------------------------------------------- /week_04/03_moverClass/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_04/03_moverClass/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_04/03_moverClass/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_04/03_moverClass/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_04/03_moverClass/src/Mover.h: -------------------------------------------------------------------------------- 1 | // 2 | // Mover.h 3 | // 04_moverClass 4 | // 5 | // Created by Bernardo Schorr on 2/20/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Mover { 14 | public: 15 | 16 | void setup(float x, float y); 17 | void update(); 18 | void resetForces(); 19 | void applyForce(ofVec2f force); 20 | void applyDampingForce(float damping); 21 | void draw(); 22 | 23 | ofVec2f pos, vel, acc; 24 | 25 | }; -------------------------------------------------------------------------------- /week_04/03_moverClass/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_04/04_mixingForces/04_mixingForces.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_04/04_mixingForces/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 | -------------------------------------------------------------------------------- /week_04/04_mixingForces/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_04/04_mixingForces/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_04/04_mixingForces/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_04/04_mixingForces/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_04/04_mixingForces/src/Mover.h: -------------------------------------------------------------------------------- 1 | // 2 | // Mover.h 3 | // 04_moverClass 4 | // 5 | // Created by Bernardo Schorr on 2/20/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Mover { 14 | public: 15 | 16 | void setup(float x, float y); 17 | void update(); 18 | void resetForces(); 19 | void applyForce(ofVec2f force); 20 | void applyDampingForce(float damping); 21 | void draw(); 22 | 23 | ofVec2f pos, vel, acc; 24 | 25 | }; -------------------------------------------------------------------------------- /week_04/04_mixingForces/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_04/05_mass/05_mass.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_04/05_mass/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 | -------------------------------------------------------------------------------- /week_04/05_mass/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_04/05_mass/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_04/05_mass/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_04/05_mass/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_04/05_mass/src/Mover.h: -------------------------------------------------------------------------------- 1 | // 2 | // Mover.h 3 | // 04_moverClass 4 | // 5 | // Created by Bernardo Schorr on 2/20/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Mover { 14 | public: 15 | 16 | void setup(float x, float y, float _mass); 17 | void update(); 18 | void resetForces(); 19 | void applyForce(ofVec2f force); 20 | void applyDampingForce(float damping); 21 | void draw(); 22 | 23 | ofVec2f pos, vel, acc; 24 | float mass; 25 | 26 | }; -------------------------------------------------------------------------------- /week_04/05_mass/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_05/01_attraction/01_attraction.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_05/01_attraction/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 | -------------------------------------------------------------------------------- /week_05/01_attraction/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_05/01_attraction/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_05/01_attraction/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_05/01_attraction/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_05/01_attraction/src/Mover.h: -------------------------------------------------------------------------------- 1 | // 2 | // Mover.h 3 | // 04_moverClass 4 | // 5 | // Created by Bernardo Schorr on 2/20/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Mover { 14 | public: 15 | 16 | void setup(float x, float y, float _mass); 17 | void update(); 18 | void resetForces(); 19 | void applyForce(ofVec2f force); 20 | void applyDampingForce(float damping); 21 | void checkEdges(); 22 | void draw(); 23 | 24 | ofVec2f pos, vel, acc; 25 | float mass; 26 | 27 | }; -------------------------------------------------------------------------------- /week_05/01_attraction/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_05/02_attractionMany/02_attractionMany.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_05/02_attractionMany/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 | -------------------------------------------------------------------------------- /week_05/02_attractionMany/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_05/02_attractionMany/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_05/02_attractionMany/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_05/02_attractionMany/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_05/02_attractionMany/src/Mover.h: -------------------------------------------------------------------------------- 1 | // 2 | // Mover.h 3 | // 04_moverClass 4 | // 5 | // Created by Bernardo Schorr on 2/20/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Mover { 14 | public: 15 | 16 | void setup(float x, float y, float _mass); 17 | void update(); 18 | void resetForces(); 19 | void applyForce(ofVec2f force); 20 | void applyDampingForce(float damping); 21 | void checkEdges(); 22 | void draw(); 23 | 24 | ofVec2f pos, vel, acc; 25 | float mass; 26 | 27 | }; -------------------------------------------------------------------------------- /week_05/02_attractionMany/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_05/02_attractionMany/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "Mover.h" 5 | 6 | class ofApp : public ofBaseApp{ 7 | 8 | public: 9 | void setup(); 10 | void update(); 11 | void draw(); 12 | 13 | void keyPressed(int key); 14 | void keyReleased(int key); 15 | void mouseMoved(int x, int y ); 16 | void mouseDragged(int x, int y, int button); 17 | void mousePressed(int x, int y, int button); 18 | void mouseReleased(int x, int y, int button); 19 | void windowResized(int w, int h); 20 | void dragEvent(ofDragInfo dragInfo); 21 | void gotMessage(ofMessage msg); 22 | 23 | vector moverList; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week_05/03_repulsionMany/03_manyParticlesRepulsion.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_05/03_repulsionMany/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 | -------------------------------------------------------------------------------- /week_05/03_repulsionMany/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_05/03_repulsionMany/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_05/03_repulsionMany/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_05/03_repulsionMany/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_05/03_repulsionMany/src/Mover.h: -------------------------------------------------------------------------------- 1 | // 2 | // Mover.h 3 | // 04_moverClass 4 | // 5 | // Created by Bernardo Schorr on 2/20/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Mover { 14 | public: 15 | 16 | void setup(float x, float y, float _mass); 17 | void update(); 18 | void resetForces(); 19 | void applyForce(ofVec2f force); 20 | void applyDampingForce(float damping); 21 | void checkEdges(); 22 | void draw(); 23 | 24 | ofVec2f pos, vel, acc; 25 | float mass; 26 | 27 | }; -------------------------------------------------------------------------------- /week_05/03_repulsionMany/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_05/03_repulsionMany/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "Mover.h" 5 | 6 | class ofApp : public ofBaseApp{ 7 | 8 | public: 9 | void setup(); 10 | void update(); 11 | void draw(); 12 | 13 | void keyPressed(int key); 14 | void keyReleased(int key); 15 | void mouseMoved(int x, int y ); 16 | void mouseDragged(int x, int y, int button); 17 | void mousePressed(int x, int y, int button); 18 | void mouseReleased(int x, int y, int button); 19 | void windowResized(int w, int h); 20 | void dragEvent(ofDragInfo dragInfo); 21 | void gotMessage(ofMessage msg); 22 | 23 | vector moverList; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week_05/04_AttractionRepulsion/04_AttractionRepulsion.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_05/04_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 | -------------------------------------------------------------------------------- /week_05/04_AttractionRepulsion/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_05/04_AttractionRepulsion/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_05/04_AttractionRepulsion/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_05/04_AttractionRepulsion/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_05/04_AttractionRepulsion/src/Mover.h: -------------------------------------------------------------------------------- 1 | // 2 | // Mover.h 3 | // 04_moverClass 4 | // 5 | // Created by Bernardo Schorr on 2/20/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Mover { 14 | public: 15 | 16 | void setup(float x, float y, float _mass); 17 | void update(); 18 | void resetForces(); 19 | void applyForce(ofVec2f force); 20 | void applyDampingForce(float damping); 21 | void checkEdges(); 22 | void draw(); 23 | 24 | ofVec2f pos, vel, acc; 25 | float mass; 26 | 27 | }; -------------------------------------------------------------------------------- /week_05/04_AttractionRepulsion/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_05/04_AttractionRepulsion/src/ofApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "ofMain.h" 4 | #include "Mover.h" 5 | 6 | class ofApp : public ofBaseApp{ 7 | 8 | public: 9 | void setup(); 10 | void update(); 11 | void draw(); 12 | 13 | void keyPressed(int key); 14 | void keyReleased(int key); 15 | void mouseMoved(int x, int y ); 16 | void mouseDragged(int x, int y, int button); 17 | void mousePressed(int x, int y, int button); 18 | void mouseReleased(int x, int y, int button); 19 | void windowResized(int w, int h); 20 | void dragEvent(ofDragInfo dragInfo); 21 | void gotMessage(ofMessage msg); 22 | 23 | vector moverList; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week_05/05_oneParticle/05_oneParticle.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_05/05_oneParticle/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 | -------------------------------------------------------------------------------- /week_05/05_oneParticle/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_05/05_oneParticle/addons.make -------------------------------------------------------------------------------- /week_05/05_oneParticle/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_05/05_oneParticle/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_05/05_oneParticle/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_05/05_oneParticle/src/Particle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Particle.h 3 | // 01_oneParticle 4 | // 5 | // Created by Bernardo Schorr on 3/2/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Particle { 14 | public: 15 | 16 | Particle(); 17 | 18 | void setup(); 19 | 20 | void resetForces(); 21 | void applyForce(ofVec2f force); 22 | 23 | void update(); 24 | void draw(); 25 | 26 | ofVec2f pos, vel, acc; 27 | float lifespan; 28 | 29 | }; 30 | -------------------------------------------------------------------------------- /week_05/05_oneParticle/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_05/06_manyParticles/06_manyParticles.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_05/06_manyParticles/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 | -------------------------------------------------------------------------------- /week_05/06_manyParticles/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_05/06_manyParticles/addons.make -------------------------------------------------------------------------------- /week_05/06_manyParticles/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_05/06_manyParticles/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_05/06_manyParticles/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_05/06_manyParticles/src/Particle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Particle.h 3 | // 01_oneParticle 4 | // 5 | // Created by Bernardo Schorr on 3/2/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Particle { 14 | public: 15 | 16 | Particle(); 17 | 18 | void setup(); 19 | 20 | void resetForces(); 21 | void applyForce(ofVec2f force); 22 | 23 | void update(); 24 | void draw(); 25 | 26 | ofVec2f pos, vel, acc; 27 | float lifespan; 28 | 29 | }; 30 | -------------------------------------------------------------------------------- /week_05/06_manyParticles/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_05/07_particleSystems/07_particleSystems.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_05/07_particleSystems/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 | -------------------------------------------------------------------------------- /week_05/07_particleSystems/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_05/07_particleSystems/addons.make -------------------------------------------------------------------------------- /week_05/07_particleSystems/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_05/07_particleSystems/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_05/07_particleSystems/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_05/07_particleSystems/src/Particle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Particle.h 3 | // 01_oneParticle 4 | // 5 | // Created by Bernardo Schorr on 3/2/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Particle { 14 | public: 15 | 16 | Particle(ofVec2f _pos); 17 | 18 | void setup(); 19 | 20 | void resetForces(); 21 | void applyForce(ofVec2f force); 22 | 23 | void update(); 24 | void draw(); 25 | 26 | ofVec2f pos, vel, acc; 27 | float lifespan; 28 | 29 | }; 30 | -------------------------------------------------------------------------------- /week_05/07_particleSystems/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_05/07_particleSystems/src/particleSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // particleSystem.h 3 | // 01_manyParticles 4 | // 5 | // Created by Bernardo Schorr on 3/2/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | #include "Particle.h" 13 | 14 | class particleSystem { 15 | public: 16 | 17 | particleSystem(ofVec2f _pos); 18 | void update(ofVec2f _force); 19 | void draw(); 20 | 21 | vector particleList; 22 | ofVec2f pos; 23 | 24 | }; 25 | -------------------------------------------------------------------------------- /week_05/08_connectedParticles/08_connectedParticles.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_05/08_connectedParticles/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 | -------------------------------------------------------------------------------- /week_05/08_connectedParticles/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_05/08_connectedParticles/addons.make -------------------------------------------------------------------------------- /week_05/08_connectedParticles/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_05/08_connectedParticles/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_05/08_connectedParticles/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_05/08_connectedParticles/src/Particle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Particle.h 3 | // 01_oneParticle 4 | // 5 | // Created by Bernardo Schorr on 3/2/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Particle { 14 | public: 15 | 16 | Particle(ofVec2f _pos, ofVec2f _vel); 17 | 18 | void resetForces(); 19 | void applyForce(ofVec2f force); 20 | 21 | void update(); 22 | void draw(); 23 | 24 | ofVec2f pos, vel, acc; 25 | float lifespan; 26 | 27 | }; 28 | -------------------------------------------------------------------------------- /week_05/08_connectedParticles/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_06/01_particlesDrag/01_particlesDrag.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_06/01_particlesDrag/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 | -------------------------------------------------------------------------------- /week_06/01_particlesDrag/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_06/01_particlesDrag/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_06/01_particlesDrag/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_06/01_particlesDrag/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_06/01_particlesDrag/src/Particle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Particle.h 3 | // 01_oneParticle 4 | // 5 | // Created by Bernardo Schorr on 3/2/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Particle { 14 | public: 15 | 16 | Particle(ofVec2f _pos); 17 | 18 | void setup(); 19 | 20 | void resetForces(); 21 | void applyForce(ofVec2f force); 22 | void applyDampingForce(float damping); 23 | 24 | void update(); 25 | void draw(ofColor _color); 26 | 27 | ofVec2f pos, vel, acc; 28 | float lifespan, size; 29 | 30 | }; 31 | -------------------------------------------------------------------------------- /week_06/01_particlesDrag/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_06/02_particlesShapes/02_particlesShapes.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_06/02_particlesShapes/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 | -------------------------------------------------------------------------------- /week_06/02_particlesShapes/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_06/02_particlesShapes/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_06/02_particlesShapes/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_06/02_particlesShapes/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_06/02_particlesShapes/src/Particle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Particle.h 3 | // 01_oneParticle 4 | // 5 | // Created by Bernardo Schorr on 3/2/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Particle { 14 | public: 15 | 16 | Particle(ofVec2f _pos, ofVec2f _vel); 17 | 18 | void setup(); 19 | 20 | void resetForces(); 21 | void applyForce(ofVec2f force); 22 | void applyDampingForce(float damping); 23 | 24 | void update(); 25 | void draw(ofColor _color); 26 | 27 | ofVec2f pos, vel, acc; 28 | 29 | }; 30 | -------------------------------------------------------------------------------- /week_06/02_particlesShapes/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_06/02_particlesShapes/src/particleSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // particleSystem.h 3 | // 01_manyParticles 4 | // 5 | // Created by Bernardo Schorr on 3/2/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | #include "Particle.h" 13 | 14 | class particleSystem { 15 | public: 16 | 17 | particleSystem(ofVec2f _pos); 18 | void update(ofVec2f _force); 19 | void draw(); 20 | 21 | void mouseDragged(float x, float y); 22 | 23 | vector particleList; 24 | ofVec2f pos; 25 | 26 | ofColor color; 27 | 28 | }; 29 | -------------------------------------------------------------------------------- /week_06/03_particlesTriangles/03_particlesTriangles.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_06/03_particlesTriangles/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 | -------------------------------------------------------------------------------- /week_06/03_particlesTriangles/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_06/03_particlesTriangles/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_06/03_particlesTriangles/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_06/03_particlesTriangles/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_06/03_particlesTriangles/src/Particle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Particle.h 3 | // 01_oneParticle 4 | // 5 | // Created by Bernardo Schorr on 3/2/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Particle { 14 | public: 15 | 16 | Particle(ofVec2f _pos, ofVec2f _vel); 17 | 18 | void setup(); 19 | 20 | void resetForces(); 21 | void applyForce(ofVec2f force); 22 | void applyDampingForce(float damping); 23 | 24 | void update(); 25 | void draw(ofColor _color); 26 | 27 | ofVec2f pos, vel, acc; 28 | 29 | }; 30 | -------------------------------------------------------------------------------- /week_06/03_particlesTriangles/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_06/03_particlesTriangles/src/particleSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // particleSystem.h 3 | // 01_manyParticles 4 | // 5 | // Created by Bernardo Schorr on 3/2/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | #include "Particle.h" 13 | 14 | class particleSystem { 15 | public: 16 | 17 | particleSystem(ofVec2f _pos); 18 | void update(ofVec2f _force); 19 | void draw(); 20 | 21 | void mouseDragged(float x, float y); 22 | 23 | vector particleList; 24 | ofVec2f pos; 25 | 26 | }; 27 | -------------------------------------------------------------------------------- /week_06/04_particlesAttractionSpiral/04_particlesAttractionSpiral.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_06/04_particlesAttractionSpiral/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 | -------------------------------------------------------------------------------- /week_06/04_particlesAttractionSpiral/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_06/04_particlesAttractionSpiral/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_06/04_particlesAttractionSpiral/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_06/04_particlesAttractionSpiral/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_06/04_particlesAttractionSpiral/src/Mover.h: -------------------------------------------------------------------------------- 1 | // 2 | // Mover.h 3 | // 04_moverClass 4 | // 5 | // Created by Bernardo Schorr on 2/20/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Mover { 14 | public: 15 | 16 | void setup(float x, float y, float _mass); 17 | void update(); 18 | void resetForces(); 19 | void applyForce(ofVec2f force); 20 | void applyElastic(); 21 | void applyDampingForce(float damping); 22 | void checkEdges(); 23 | void draw(); 24 | 25 | ofVec2f origPos, pos, vel, acc; 26 | float mass; 27 | 28 | }; -------------------------------------------------------------------------------- /week_06/04_particlesAttractionSpiral/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_06/05_blendMode/05_blendMode.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_06/05_blendMode/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 | -------------------------------------------------------------------------------- /week_06/05_blendMode/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_06/05_blendMode/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_06/05_blendMode/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_06/05_blendMode/bin/data/sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_06/05_blendMode/bin/data/sprite.png -------------------------------------------------------------------------------- /week_06/05_blendMode/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_06/05_blendMode/src/Particle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Particle.h 3 | // 01_oneParticle 4 | // 5 | // Created by Bernardo Schorr on 3/2/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Particle { 14 | public: 15 | 16 | Particle(ofVec2f _pos); 17 | 18 | void setup(); 19 | 20 | void resetForces(); 21 | void applyForce(ofVec2f force); 22 | 23 | void update(); 24 | void draw(ofImage &img); 25 | 26 | ofVec2f pos, vel, acc; 27 | float lifespan; 28 | 29 | ofColor color; 30 | 31 | }; 32 | -------------------------------------------------------------------------------- /week_06/05_blendMode/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_06/05_blendMode/src/particleSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // particleSystem.h 3 | // 01_manyParticles 4 | // 5 | // Created by Bernardo Schorr on 3/2/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | #include "Particle.h" 13 | 14 | class particleSystem { 15 | public: 16 | 17 | particleSystem(); 18 | void update(ofVec2f _force); 19 | void draw(); 20 | 21 | vector particleList; 22 | ofVec2f pos; 23 | 24 | ofImage sprite; 25 | 26 | float timeOffset; 27 | float yOffset; 28 | 29 | }; 30 | -------------------------------------------------------------------------------- /week_06/06_pointersAndReferences/06_pointersAndReferences.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_06/06_pointersAndReferences/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 | -------------------------------------------------------------------------------- /week_06/06_pointersAndReferences/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_06/06_pointersAndReferences/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_06/06_pointersAndReferences/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_06/06_pointersAndReferences/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_06/06_pointersAndReferences/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_06/06_pointersAndReferences/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 | int n; 23 | int *m = new int; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week_06/README.md: -------------------------------------------------------------------------------- 1 | ###Week 06 - More particles / C++ / Box2D 2 | 3 | ####Check out 4 | [Box2D](http://box2d.org/) 5 | 6 | [Nature of code - Chapter 5 - Physics Libraries](http://natureofcode.com/book/chapter-5-physics-libraries/) by Daniel Shiffman 7 | 8 | [OFBook - Memory chapter](https://github.com/openframeworks/ofBook/blob/master/chapters/memory/chapter.md) by Arturo Castro 9 | 10 | ####Play 11 | [Angry Birds](https://www.angrybirds.com/) 12 | 13 | 14 | ####Homework: 15 | 16 | Work on your midterms! -------------------------------------------------------------------------------- /week_07/01_steer/01_steer.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_07/01_steer/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 | -------------------------------------------------------------------------------- /week_07/01_steer/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_07/01_steer/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_07/01_steer/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_07/01_steer/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_07/01_steer/src/Vehicle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Vehicle.h 3 | // 01_steer 4 | // 5 | // Created by Bernardo Santos Schorr on 3/31/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | #include "ofMain.h" 11 | 12 | class Vehicle { 13 | public: 14 | 15 | void setup(); 16 | void update(); 17 | void draw(); 18 | 19 | void resetForces(); 20 | void applyForce(ofVec2f force); 21 | void seek (ofVec2f target); 22 | 23 | ofVec2f pos, vel, acc; 24 | 25 | float maxSpeed, maxForce; 26 | 27 | }; -------------------------------------------------------------------------------- /week_07/01_steer/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_07/02_avoidWalls/02_avoidWalls.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_07/02_avoidWalls/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 | -------------------------------------------------------------------------------- /week_07/02_avoidWalls/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_07/02_avoidWalls/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_07/02_avoidWalls/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_07/02_avoidWalls/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_07/02_avoidWalls/src/Vehicle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Vehicle.h 3 | // 01_steer 4 | // 5 | // Created by Bernardo Santos Schorr on 3/31/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | #include "ofMain.h" 11 | 12 | class Vehicle { 13 | public: 14 | 15 | void setup(); 16 | void update(); 17 | void draw(); 18 | 19 | void resetForces(); 20 | void applyForce(ofVec2f force); 21 | void avoidWalls(float d); 22 | 23 | ofVec2f pos, vel, acc; 24 | float mass; 25 | 26 | float maxSpeed, maxForce; 27 | 28 | }; -------------------------------------------------------------------------------- /week_07/02_avoidWalls/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_07/03_flowField/03_flowField.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_07/03_flowField/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 | -------------------------------------------------------------------------------- /week_07/03_flowField/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_07/03_flowField/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_07/03_flowField/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_07/03_flowField/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_07/03_flowField/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_07/03_flowField/src/particle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Particle.h 3 | // 03_flowField 4 | // 5 | // Created by Bernardo Santos Schorr on 3/31/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | #include "ofMain.h" 11 | 12 | class Particle { 13 | public: 14 | 15 | void setup(); 16 | 17 | void resetForces(); 18 | void applyForce(ofVec2f force); 19 | void applyDampingForce(float damping); 20 | 21 | void update(); 22 | void draw(); 23 | 24 | ofVec2f pos, vel, acc; 25 | 26 | }; 27 | -------------------------------------------------------------------------------- /week_08/01_flowFieldImage/01_flowFieldImage.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_08/01_flowFieldImage/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 | -------------------------------------------------------------------------------- /week_08/01_flowFieldImage/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_08/01_flowFieldImage/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_08/01_flowFieldImage/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_08/01_flowFieldImage/bin/data/morrison.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_08/01_flowFieldImage/bin/data/morrison.jpg -------------------------------------------------------------------------------- /week_08/01_flowFieldImage/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_08/01_flowFieldImage/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_08/01_flowFieldImage/src/particle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Particle.h 3 | // 03_flowField 4 | // 5 | // Created by Bernardo Santos Schorr on 3/31/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | #include "ofMain.h" 11 | 12 | class Particle { 13 | public: 14 | 15 | void setup(); 16 | 17 | void resetForces(); 18 | void applyForce(ofVec2f force); 19 | void applyDampingForce(float damping); 20 | 21 | void update(); 22 | void draw(); 23 | 24 | ofVec2f pos, vel, acc; 25 | 26 | }; 27 | -------------------------------------------------------------------------------- /week_08/02_pathFollowing/02_pathFollowing.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_08/02_pathFollowing/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 | -------------------------------------------------------------------------------- /week_08/02_pathFollowing/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_08/02_pathFollowing/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_08/02_pathFollowing/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_08/02_pathFollowing/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_08/02_pathFollowing/src/Path.h: -------------------------------------------------------------------------------- 1 | // 2 | // Path.h 3 | // 02_pathFollowing 4 | // 5 | // Created by Bernardo Santos Schorr on 4/5/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | #include "ofMain.h" 11 | 12 | class Path { 13 | public: 14 | 15 | Path(); 16 | void draw(); 17 | 18 | ofVec2f start, end; 19 | float radius; 20 | 21 | }; 22 | -------------------------------------------------------------------------------- /week_08/02_pathFollowing/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_08/03_groupBehavior/03_particle_particle.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_08/03_groupBehavior/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 | -------------------------------------------------------------------------------- /week_08/03_groupBehavior/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_08/03_groupBehavior/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_08/03_groupBehavior/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_08/03_groupBehavior/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_08/03_groupBehavior/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_08/04_flocking/04_flocking.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_08/04_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 | -------------------------------------------------------------------------------- /week_08/04_flocking/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_08/04_flocking/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_08/04_flocking/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_08/04_flocking/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_08/04_flocking/src/Flock.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Flock.cpp 3 | // 04_flocking 4 | // 5 | // Created by Bernardo Santos Schorr on 4/6/15. 6 | // 7 | // 8 | 9 | #include "Flock.h" 10 | 11 | 12 | Flock::Flock() { 13 | } 14 | 15 | void Flock::update() { 16 | 17 | for( vector::iterator b=boids.begin(); b!=boids.end(); b++){ 18 | b->resetForces(); 19 | b->flock(boids); 20 | b->update(); 21 | } 22 | } 23 | 24 | void Flock::draw() { 25 | 26 | for (vector::iterator b=boids.begin(); b!=boids.end(); b++) { 27 | b->draw(); 28 | } 29 | } 30 | 31 | void Flock::addBoid(Boid b) { 32 | boids.push_back(b); 33 | } -------------------------------------------------------------------------------- /week_08/04_flocking/src/Flock.h: -------------------------------------------------------------------------------- 1 | // 2 | // Flock.h 3 | // 04_flocking 4 | // 5 | // Created by Bernardo Santos Schorr on 4/6/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | #include "ofMain.h" 11 | #include "Boid.h" 12 | 13 | class Flock { 14 | public: 15 | 16 | Flock(); 17 | void update(); 18 | void draw(); 19 | void addBoid(Boid b); 20 | 21 | vector boids; 22 | 23 | }; 24 | -------------------------------------------------------------------------------- /week_08/04_flocking/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_09/01_3DBasics/01_3DBasics.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_09/01_3DBasics/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 | -------------------------------------------------------------------------------- /week_09/01_3DBasics/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_09/01_3DBasics/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_09/01_3DBasics/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_09/01_3DBasics/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_09/01_3DBasics/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_09/02_meshBasics/02_meshBasics.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_09/02_meshBasics/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 | -------------------------------------------------------------------------------- /week_09/02_meshBasics/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_09/02_meshBasics/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_09/02_meshBasics/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_09/02_meshBasics/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_09/02_meshBasics/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_09/02_meshBasics/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 | ofVboMesh mesh; 23 | ofEasyCam cam; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week_09/03_meshAndCam/03_meshAndCam.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_09/03_meshAndCam/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 | -------------------------------------------------------------------------------- /week_09/03_meshAndCam/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_09/03_meshAndCam/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_09/03_meshAndCam/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_09/03_meshAndCam/bin/data/mfadt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_09/03_meshAndCam/bin/data/mfadt.png -------------------------------------------------------------------------------- /week_09/03_meshAndCam/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_09/03_meshAndCam/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_09/04_meshFacesNormals/04_meshFacesNormals.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_09/04_meshFacesNormals/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 | -------------------------------------------------------------------------------- /week_09/04_meshFacesNormals/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_09/04_meshFacesNormals/addons.make -------------------------------------------------------------------------------- /week_09/04_meshFacesNormals/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_09/04_meshFacesNormals/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_09/04_meshFacesNormals/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_09/04_meshFacesNormals/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_09/05_3Dflocking/05_3Dflocking.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_09/05_3Dflocking/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 | -------------------------------------------------------------------------------- /week_09/05_3Dflocking/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_09/05_3Dflocking/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_09/05_3Dflocking/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_09/05_3Dflocking/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_09/05_3Dflocking/src/Flock.h: -------------------------------------------------------------------------------- 1 | // 2 | // Flock.h 3 | // 04_flocking 4 | // 5 | // Created by Bernardo Santos Schorr on 4/6/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | #include "ofMain.h" 11 | #include "Boid.h" 12 | 13 | class Flock { 14 | public: 15 | 16 | Flock(); 17 | void update(); 18 | void draw(); 19 | void addBoid(Boid b); 20 | 21 | vector boids; 22 | 23 | ofVec3f target; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week_09/05_3Dflocking/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_10/01_factorial/01_factorial.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_10/01_factorial/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 | -------------------------------------------------------------------------------- /week_10/01_factorial/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_10/01_factorial/addons.make -------------------------------------------------------------------------------- /week_10/01_factorial/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_10/01_factorial/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_10/01_factorial/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_10/01_factorial/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_10/01_factorial/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 | int factorial (int n); 23 | 24 | int keypress, result; 25 | }; 26 | -------------------------------------------------------------------------------- /week_10/02_recursiveCircles/02_recursiveCircles.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_10/02_recursiveCircles/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 | -------------------------------------------------------------------------------- /week_10/02_recursiveCircles/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_10/02_recursiveCircles/addons.make -------------------------------------------------------------------------------- /week_10/02_recursiveCircles/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_10/02_recursiveCircles/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_10/02_recursiveCircles/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_10/02_recursiveCircles/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_10/02_recursiveCircles/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 | void drawCircle(float x, float y, float radius); 23 | 24 | }; 25 | -------------------------------------------------------------------------------- /week_10/03_cantorLines/03_cantorLines.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_10/03_cantorLines/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 | -------------------------------------------------------------------------------- /week_10/03_cantorLines/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_10/03_cantorLines/addons.make -------------------------------------------------------------------------------- /week_10/03_cantorLines/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_10/03_cantorLines/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_10/03_cantorLines/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_10/03_cantorLines/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_10/03_cantorLines/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 | void cantor(float x, float y, float len); 22 | 23 | }; 24 | -------------------------------------------------------------------------------- /week_10/04_cantorLineVariation/04_cantorLineVariation.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_10/04_cantorLineVariation/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 | -------------------------------------------------------------------------------- /week_10/04_cantorLineVariation/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_10/04_cantorLineVariation/addons.make -------------------------------------------------------------------------------- /week_10/04_cantorLineVariation/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_10/04_cantorLineVariation/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_10/04_cantorLineVariation/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_10/04_cantorLineVariation/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_10/04_cantorLineVariation/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 | void drawLines(float x1, float y1, float x2, float y2); 22 | 23 | }; 24 | -------------------------------------------------------------------------------- /week_10/05_kochFractal/05_kochFractal.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_10/05_kochFractal/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 | -------------------------------------------------------------------------------- /week_10/05_kochFractal/addons.make: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_10/05_kochFractal/addons.make -------------------------------------------------------------------------------- /week_10/05_kochFractal/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_10/05_kochFractal/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_10/05_kochFractal/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_10/05_kochFractal/src/kochFractal.h: -------------------------------------------------------------------------------- 1 | // 2 | // kochFractal.h 3 | // 05_kochFractal 4 | // 5 | // Created by Bernardo Schorr on 4/26/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | #include "kochLine.h" 13 | 14 | class kochFractal { 15 | public: 16 | 17 | kochFractal(); 18 | void nextLevel(); 19 | void restart(); 20 | int getCount(); 21 | void draw(); 22 | vector iterate (vector before); 23 | 24 | ofVec2f start, end; 25 | vector lines; // A list to keep track of all the lines 26 | int count; 27 | 28 | }; 29 | -------------------------------------------------------------------------------- /week_10/05_kochFractal/src/kochLine.h: -------------------------------------------------------------------------------- 1 | // 2 | // kochLine.h 3 | // 05_kochFractal 4 | // 5 | // Created by Bernardo Schorr on 4/26/15. 6 | // 7 | // 8 | 9 | #pragma once 10 | #include "ofMain.h" 11 | 12 | class kochLine { 13 | public: 14 | 15 | kochLine(ofVec2f start, ofVec2f end); 16 | void draw(); 17 | ofVec2f start(); 18 | ofVec2f kochLeft(); 19 | ofVec2f kochMiddle(); 20 | ofVec2f kochRight(); 21 | ofVec2f end(); 22 | 23 | ofVec2f a, b; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /week_10/05_kochFractal/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_10/06_recursiveTree/06_recursiveTree.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_10/06_recursiveTree/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 | -------------------------------------------------------------------------------- /week_10/06_recursiveTree/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_10/06_recursiveTree/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_10/06_recursiveTree/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_10/06_recursiveTree/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_10/06_recursiveTree/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /week_10/07_L_System/07_L_System.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /week_10/07_L_System/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 | -------------------------------------------------------------------------------- /week_10/07_L_System/addons.make: -------------------------------------------------------------------------------- 1 | addons 2 | -------------------------------------------------------------------------------- /week_10/07_L_System/bin/data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bschorr/OFAnimation_Spring2015/869ededa36bf0bd432129e5a551db5d19d1f5d35/week_10/07_L_System/bin/data/.gitkeep -------------------------------------------------------------------------------- /week_10/07_L_System/icon.rc: -------------------------------------------------------------------------------- 1 | // Icon Resource Definition 2 | #define MAIN_ICON 102 3 | 4 | #if defined(_DEBUG) 5 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico" 6 | #else 7 | MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico" 8 | #endif 9 | -------------------------------------------------------------------------------- /week_10/07_L_System/src/LSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // LSystem.h 3 | // 04_Lsystem 4 | // 5 | // Created by Charlie Whitney on 11/19/13. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | #include "Rule.h" 13 | 14 | class LSystem { 15 | public: 16 | 17 | void setup( string axiom, vector rules ); 18 | void addGeneration(); 19 | 20 | string sentence; 21 | int generation; 22 | vector ruleList; 23 | }; -------------------------------------------------------------------------------- /week_10/07_L_System/src/Rule.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Rule.cpp 3 | // 04_Lsystem 4 | // 5 | // Created by Charlie Whitney on 11/19/13. 6 | // 7 | // 8 | 9 | #include "Rule.h" 10 | -------------------------------------------------------------------------------- /week_10/07_L_System/src/Rule.h: -------------------------------------------------------------------------------- 1 | // 2 | // Rule.h 3 | // 04_Lsystem 4 | // 5 | // Created by Charlie Whitney on 11/19/13. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Rule { 14 | public: 15 | Rule( char _a, string _b){ 16 | a = _a; 17 | b = _b; 18 | }; 19 | 20 | char a; 21 | string b; 22 | }; -------------------------------------------------------------------------------- /week_10/07_L_System/src/Turtle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Turtle.h 3 | // 04_Lsystem 4 | // 5 | // Created by Charlie Whitney on 11/19/13. 6 | // 7 | // 8 | 9 | #pragma once 10 | 11 | #include "ofMain.h" 12 | 13 | class Turtle { 14 | public: 15 | void setup( float moveLength, float turnAngle ); 16 | void setInstructions( string str ); 17 | void draw(); 18 | 19 | string instructions; 20 | float length; 21 | float theta; 22 | }; -------------------------------------------------------------------------------- /week_10/07_L_System/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "ofMain.h" 2 | #include "ofApp.h" 3 | 4 | //======================================================================== 5 | int main( ){ 6 | ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context 7 | 8 | // this kicks off the running of my app 9 | // can be OF_WINDOW or OF_FULLSCREEN 10 | // pass in width and height too: 11 | ofRunApp(new ofApp()); 12 | 13 | } 14 | --------------------------------------------------------------------------------