Removing a few examples for 2.0

This commit is contained in:
Casey Reas
2011-09-16 00:02:20 +00:00
parent 93b887ee24
commit c3b8b312a0
31 changed files with 318 additions and 417 deletions
@@ -1,5 +1,5 @@
/**
* Logical testerators.
* Logical Operators.
*
* The logical operators for AND (&&) and OR (||) are used to
* combine simple relational statements into more complex expressions.
@@ -11,7 +11,7 @@ background(126);
boolean test = false;
for(int i = 5; i <= height; i += 5) {
for (int i = 5; i <= height; i += 5) {
// Logical AND
stroke(0);
if((i > 35) && (i < 100)) {
@@ -21,21 +21,21 @@ for(int i = 5; i <= height; i += 5) {
// Logical OR
stroke(76);
if((i <= 35) || (i >= 100)) {
if ((i <= 35) || (i >= 100)) {
line(width/2, i, width, i);
test = true;
}
// Testing if a boolean value is "true"
// The expression "if(test)" is equivalent to "if(test == true)"
if(test) {
if (test) {
stroke(0);
point(width/3, i);
}
// Testing if a boolean value is "false"
// The expression "if(!test)" is equivalent to "if(test == false)"
if(!test) {
if (!test) {
stroke(255);
point(width/4, i);
}