Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fadecandy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scanlime
Fadecandy
Commits
16ca6547
Commit
16ca6547
authored
11 years ago
by
Micah Elizabeth Scott
Browse files
Options
Downloads
Patches
Plain Diff
Keyboard commands to change zoom, pause, disable dithering
parent
db08ac86
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/processing/grid32x16z_video/grid32x16z_video.pde
+14
-3
14 additions, 3 deletions
examples/processing/grid32x16z_video/grid32x16z_video.pde
with
14 additions
and
3 deletions
examples/processing/grid32x16z_video/grid32x16z_video.pde
+
14
−
3
View file @
16ca6547
...
...
@@ -2,12 +2,11 @@ import processing.video.*;
//String filename = "/Users/micah/Dropbox/video/Sixteen Dots - An interactive music video for Amon Tobins Lost and Found-720p.mp4";
//String filename = "/Users/micah/Dropbox/video/Nobody Beats the Drum - Grindin-720p.mp4";
String
filename
=
"/Users/micah/Dropbox/video/amon_tobin_sordid.mp4"
;
//
String filename = "/Users/micah/Dropbox/video/amon_tobin_sordid.mp4";
//String filename = "/Users/micah/Dropbox/video/La Roux - Bulletproof-360p.mp4";
//String filename = "/Users/micah/Dropbox/video/will.i.am - Scream & Shout ft. Britney Spears-360p.mp4";
//
String filename = "/Users/micah/Dropbox/video/The Glitch Mob - We Can Make The World Stop (Official Video)-720p.mp4";
String
filename
=
"/Users/micah/Dropbox/video/The Glitch Mob - We Can Make The World Stop (Official Video)-720p.mp4"
;
//float zoom = 1.75;
float
zoom
=
2
;
OPC
opc
;
...
...
@@ -39,6 +38,18 @@ void setup()
}
}
void
keyPressed
()
{
if
(
key
==
'd'
)
opc
.
setDithering
(
false
);
if
(
key
==
' '
)
movie
.
pause
();
if
(
key
==
']'
)
zoom
*=
1.1
;
if
(
key
==
'['
)
zoom
*=
0.9
;
}
void
keyReleased
()
{
if
(
key
==
'd'
)
opc
.
setDithering
(
true
);
if
(
key
==
' '
)
movie
.
play
();
}
void
movieEvent
(
Movie
m
)
{
m
.
read
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment