From the course: Processing: Interactive Data Visualization
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Changing placement modes - Processing Tutorial
From the course: Processing: Interactive Data Visualization
Changing placement modes
Processing also gives you several functions for positioning shapes such as rectangles and ellipses. And in this movie, I want to show you what some of your options are for doing that. I'll begin by simply putting a comment at the top with the name of this video. Then I'm going to create a window that's 600x200 and I'll turn on anti-aliasing. Then I am going to draw a rectangle. I'll go 250 pixels over and then come 50 pixels down then I'll make it 100 wide and 100 tall. I'll also makes these strokes, strokeWeight of 20 pixels and so there's my default shape right there in the middle, just a default white fill with a black border. Now, note where it is. It's smack in the middle. This is the default positioning. I did this because I knew that it would be 100 pixels wide, and I put the corner it positions by the top left corner 250 pixels over and 50 pixels down. On the other hand, you have an option of using different placement modes. The one that I just used and by the way they are…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
Incorporating randomness7m 59s
-
Using Perlin noise4m 24s
-
Shuffling with Java3m 30s
-
Specifying line attributes8m 2s
-
Changing placement modes5m 45s
-
Understanding color attributes and functions4m 16s
-
Exploring color spaces7m 44s
-
Using color palettes7m 5s
-
Transforming the grid8m 38s
-
Exploring the attribute matrix5m 33s
-
-
-
-
-
-
-
-
-
-
-