<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Tagged with strokeweight() - Processing 2.x and 3.x Forum</title>
      <link>https://forum.processing.org/two/discussions/tagged/feed.rss?Tag=strokeweight%28%29</link>
      <pubDate>Sun, 08 Aug 2021 17:43:03 +0000</pubDate>
         <description>Tagged with strokeweight() - Processing 2.x and 3.x Forum</description>
   <language>en-CA</language>
   <atom:link href="/two/discussions/taggedstrokeweight%28%29/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>can anyone help with pushmatrix?</title>
      <link>https://forum.processing.org/two/discussion/28131/can-anyone-help-with-pushmatrix</link>
      <pubDate>Tue, 02 Oct 2018 21:50:25 +0000</pubDate>
      <dc:creator>laptophead</dc:creator>
      <guid isPermaLink="false">28131@/two/discussions</guid>
      <description><![CDATA[<p>I am modeling this robotic arm and it looks great.</p>

<p>I am also trying to display each angle next to each point of inflexion. 
In the case of the elbow, I am trying to move the text with the elbow position along with the inflexion point. 
That works, but I cant find a method to keep the writing horisontal.
It rotates with the first segment angle...</p>

<p>here is my function</p>

<p>thanks</p>

<p>void ArmDepiction()</p>

<p>{  ///////////////////////////Base orientation</p>

<p>fill(201, 0, 211); // magenta
  //text("Y:", LS, spaceDown*3 ); 
  text( (nf(degrees(BaseAngRad), 0, 1)), 630, 1050);
  //text( "0", 85, 0);</p>

<p>strokeWeight(10);
stroke(238,242, 0);
noFill ();</p>

<p>// Form: arc(x, y, width, height, start, stop, type);
arc(550, 1000, 100, 100, (PI/2), (BaseAngRad+(PI/2)), PIE);
//stroke(#71B28F);
//arc(100, 1000, 175, 175, 0, 2*PI, 0);</p>

<p>//drawArrow(100,160,50,130);</p>

<p>///////////////////////Arm Depiction
  strokeWeight(40);
  stroke(255, 160);
  strokeCap(ROUND);</p>

<p>float x, y;</p>

<p>x = 550;
  y = 800;</p>

<p>pushMatrix();
  strokeWeight(40);
  segment(x, y, PI+ShoAngRad); 
  strokeWeight(30);
  segment1(segLength, 0, PI+ElbowAngRad); // 120 is the starting point
  segment3(segLength, 0, (2*PI)+ElbowAngRad-0.58); // 100 is the segment length
  popMatrix();</p>

<p>translate(x, y);
strokeWeight(10);
strokeJoin(ROUND);
   beginShape();
  vertex(-40, 0);</p>

<p>vertex(-65, segLength);
  vertex(65, segLength);</p>

<p>vertex(40, 0);
  endShape(CLOSE);</p>

<p>DisplayElAngle(x, y);</p>

<p>}</p>

<p>void segment(float x, float y, float a) {
  translate(x, y);
  fill(201, 0, 211); // magenta
  //text("Y:", LS, spaceDown*3 ); 
  text( (nf(degrees(ShoAngRad), 0, 1)), 30, 0);
  //text( "0", 85, 0);
  noFill ();</p>

<p>rotate(a);
  line(0, 0, segLength, 0); // 100 is the segment length</p>

<p>}</p>

<p>void DisplayElAngle(float x, float y) {
  translate(x, y);
  rotate(2<em>PI);
    fill(201, 0, 211); // magenta
  //text("Y:", LS, spaceDown</em>3 ); 
 text( (nf(degrees(ElbowAngRad), 0, 1)), 20, -10);
  noFill ();
 //</p>

<p>}
void segment1(float x, float y, float a) {
  translate(x, y);
    fill(201, 0, 211); // magenta
  //text("Y:", LS, spaceDown*3 ); 
 text( (nf(degrees(ElbowAngRad), 0, 1)), 20, -10);
  noFill ();
  rotate(a);
  line(0, 0, segLength, 0); // 100 is the segment length
   // rotate(a);</p>

<p>}</p>

<p>void segment3(float x, float y, float a) {
  translate(x, y);
  rotate(a);
  line(0, 0, (segLength/5), 0); // 100 is the segment length</p>

<p>}</p>
]]></description>
   </item>
   <item>
      <title>how to place dots and circles acquired from an image instead of random dots and circles?</title>
      <link>https://forum.processing.org/two/discussion/15013/how-to-place-dots-and-circles-acquired-from-an-image-instead-of-random-dots-and-circles</link>
      <pubDate>Fri, 19 Feb 2016 17:48:34 +0000</pubDate>
      <dc:creator>360render</dc:creator>
      <guid isPermaLink="false">15013@/two/discussions</guid>
      <description><![CDATA[<p>I got this code:</p>

<pre><code>Circle[] circles;
int numCircles = 50;
int maxDistance;

void setup() {
  size(300, 300);
  smooth();

  // create an array and fill it with circles
  circles = new Circle[numCircles];
  for (int i=0; i&lt; numCircles; i++) {
    circles[i] = new Circle(random(width), random(height), random(20, 90));
  }
}

void draw() {
  // clear background
  background(0, 0, 20);

  // update and display the circles
  for (int i=0; i&lt; numCircles; i++) {
    circles[i].update(); 
    circles[i].display();
  }

  // define maximum distance
  maxDistance = mouseX;

  // look of the lines
  stroke(255, 100);
  strokeWeight(0.5);

  for (int i=0; i&lt; numCircles; i++) {
    // compare circle to other circles
    for (int j=i+1; j&lt; numCircles; j++) {
      // draw line if distance is below 'maxDistance'
      if (dist(circles[i].x, circles[i].y, circles[j].x, circles[j].y) &lt; maxDistance) {
        line(circles[i].x, circles[i].y, circles[j].x, circles[j].y);
      }
    }
  }
}

class Circle {
  float x, y, dia;

  Circle(float x, float y, float dia) {
    this.x =x;
    this.y =y;
    this.dia = dia;
  }

  void update() {
    // code for movement here
    // this is just some random displacement
    x = x + random(-1, 1);
    y = y + random(-1, 1);
  }

  void display() {
    // code for drawing the circles
    noStroke();
    fill(60, 60, 190, 60);
    ellipse(x, y, dia, dia);
  }
}
</code></pre>

<p>that thoes this:
<img src="https://forum.processing.org/two/uploads/imageupload/996/ZN31Q70DX3CV.jpg" alt="Untitled-1" title="Untitled-1" /></p>

<p>this code draws circles and points connected by lines. the position of the circles are defined by specific coordinates.
Is it possible that a background image (by its pixels brightness) can place the center of the circles?</p>

<p>maybe something like that</p>

<p><img src="https://forum.processing.org/two/uploads/imageupload/747/R0BGDTZF5L0H.jpg" alt="Sergio-Albiac-Illustrations-24" title="Sergio-Albiac-Illustrations-24" /></p>

<p>thanks in advance</p>
]]></description>
   </item>
   <item>
      <title>How do I make one perlin noise wave join another one underneath it, using points?</title>
      <link>https://forum.processing.org/two/discussion/27902/how-do-i-make-one-perlin-noise-wave-join-another-one-underneath-it-using-points</link>
      <pubDate>Wed, 02 May 2018 11:57:27 +0000</pubDate>
      <dc:creator>rimai</dc:creator>
      <guid isPermaLink="false">27902@/two/discussions</guid>
      <description><![CDATA[<p>So I have a noise wave, and I have used a for loop to make points that travel under it, and I want them to stop at another perlin noise wave. Btw my code is really bad because I'm just a beginner :'(</p>

<p>This is my code:</p>

<pre><code>float inc = 0.04;

void setup() {
  size(640, 500);
}

void draw() {
  background(255);

  float xoff=0;
  float xoff2=0;

  xoff2 += inc;

  stroke(245, 10, 100);
  strokeWeight(1.5);

  for (float x = 0; x &lt; width; x++) {

    float y = noise(xoff) * 200;
    point(x, y);

    float t = noise(xoff2) * 400;

    //i+=5 = the space between the points vertically
    for (float i = y; i &lt; t; i+=5) {
      point(x, i);
    }

    xoff += inc;
    x = x + xoff + 4;
  }
}
</code></pre>
]]></description>
   </item>
   <item>
      <title>The strokeWeight() function not working on jsfiddle.net</title>
      <link>https://forum.processing.org/two/discussion/27794/the-strokeweight-function-not-working-on-jsfiddle-net</link>
      <pubDate>Wed, 18 Apr 2018 14:49:33 +0000</pubDate>
      <dc:creator>Tsskyx</dc:creator>
      <guid isPermaLink="false">27794@/two/discussions</guid>
      <description><![CDATA[<p>I regularly use jsfiddle to share my processing sketches with other people.</p>

<p>But now I've noticed something weird. I don't know where exactly the problem is, but for some reason, the shapes are not being rendered with a weight 5 border, they render with the default weight of 1.</p>

<p>Here's the sketch and everything: <a href="https://jsfiddle.net/Tsskyx/64Lqudm7/" target="_blank" rel="nofollow">https://jsfiddle.net/Tsskyx/64Lqudm7/</a> (the strokeWeight function is called at line 23).</p>

<p>(The program so far draws a Rubik's cube with the top layer randomly permuted and you can click to refresh it, though I'm planning to add more features to it.)</p>

<p>I'll be happy if anyone could figure this out for me. I really don't feel like rewriting the program in p5 right now.</p>
]]></description>
   </item>
   <item>
      <title>Rendering strokes with width less than 1px?</title>
      <link>https://forum.processing.org/two/discussion/26888/rendering-strokes-with-width-less-than-1px</link>
      <pubDate>Sat, 17 Mar 2018 10:28:08 +0000</pubDate>
      <dc:creator>unknownplayer</dc:creator>
      <guid isPermaLink="false">26888@/two/discussions</guid>
      <description><![CDATA[<p>Hello,</p>

<p>Right now I have a sketch with hundreds of lines and they all are angular - I mean they not arcs but not horizontal or vertical either.</p>

<p>When I set a strokeWidth() less than 1, naturally as there is nothing smaller than a pixel they are displayed intermittently.</p>

<p>My sketch size is 1920,1080. I could increase the sketch size by 10 and naturally I could achieve the same visual output but it just feels like I should be able to render really thin lines within a 1920x1080 sketch. I wonder is there a novel way of doing it, really thin lines perfectly smoothly rendered?</p>

<p>Thank you very much.</p>
]]></description>
   </item>
   <item>
      <title>Run certain code only when in Android Mode</title>
      <link>https://forum.processing.org/two/discussion/26560/run-certain-code-only-when-in-android-mode</link>
      <pubDate>Tue, 27 Feb 2018 16:23:25 +0000</pubDate>
      <dc:creator>stefanix</dc:creator>
      <guid isPermaLink="false">26560@/two/discussions</guid>
      <description><![CDATA[<p>How do people run code that is only relevant when running on a phone?</p>

<p>For example I want my sketch look the same in  Java and in Android mode. For this I have to use a strokeWeight that is proportional to displayDensity. Problem is the this variable is only available in Android mode. Similarly I only want to call size(width, height) in Java mode.</p>

<p>I can check for Android ...</p>

<p>if (System.getProperty("java.vendor") == "The Android Project") {
    strokeWeight(3*displayDensity)
}</p>

<p>... but this will not compile because Java. In Javascript/Python this would just work because lazy evaluation and in C++ this could be done with #defines.</p>

<p>How do you do that in Processing/Java. Anybody knows a trick to make it work? Reflection module (looks crazy verbose)?</p>

<p>Let me know,
Best,</p>
]]></description>
   </item>
   <item>
      <title>How to make the ellipse stay on captured colour - video cam</title>
      <link>https://forum.processing.org/two/discussion/25864/how-to-make-the-ellipse-stay-on-captured-colour-video-cam</link>
      <pubDate>Mon, 08 Jan 2018 02:27:01 +0000</pubDate>
      <dc:creator>dyrra</dc:creator>
      <guid isPermaLink="false">25864@/two/discussions</guid>
      <description><![CDATA[<p>I want achive that with everz click on colour, there will appear and staz ellipse, capturing the colour/not to disappear. Is there some easier way than to create separate drawing loops for different ellipses? Just to say something like capture and stay, even if I click again somewhere else? (example from Levin and Shiffman)</p>

<pre><code>import processing.video.*;

Capture video;

// A variable for the color we are searching for.
color trackColor; 

void setup() {
  size(640, 480);
  video = new Capture(this, width, height);
  video.start();
  // Start off tracking black
  trackColor = color(0);
}

void captureEvent(Capture video) {
  // Read image from the camera
  video.read();
}

void draw() {
  video.loadPixels();
  image(video, 0, 0);

//more higher more arger chance to find the colour 
  float worldRecord = 500; 

// seek for the closest color
  int closestX = 0;
  int closestY = 0;

// search every pixel
  for (int x = 0; x &lt; video.width; x ++ ) {
    for (int y = 0; y &lt; video.height; y ++ ) {
      int loc = x + y*video.width;
// define and showWhat is current color
      color currentColor = video.pixels[loc];
      float r1 = red(currentColor);
      float g1 = green(currentColor);
      float b1 = blue(currentColor);
      float r2 = red(trackColor);
      float g2 = green(trackColor);
      float b2 = blue(trackColor);

// Using euclidean distance to compare colors
      float d = dist(r1, g1, b1, r2, g2, b2); // We are using the dist( ) function to compare the current color with the color we are tracking.

      // If current color is more similar to tracked color than
      // closest color, save current location and current difference
      if (d &lt; worldRecord) {
        worldRecord = d;
        closestX = x;
        closestY = y;
      }
    }
  }

  // trackcolour not more far than 20 
    if (worldRecord &lt; 20) { 
    // Draw a circle at the tracked pixel
    fill(trackColor);
    strokeWeight(4.0);
    noStroke();
    ellipse(closestX, closestY, 60, 60);
  }
}

void mousePressed() {
  // store the colour from video and keep it tracked
  int loc = mouseX + mouseY*video.width;
  trackColor = video.pixels[loc];
}
</code></pre>
]]></description>
   </item>
   <item>
      <title>P5 back and forth animation</title>
      <link>https://forum.processing.org/two/discussion/25782/p5-back-and-forth-animation</link>
      <pubDate>Tue, 02 Jan 2018 06:07:48 +0000</pubDate>
      <dc:creator>Amorris</dc:creator>
      <guid isPermaLink="false">25782@/two/discussions</guid>
      <description><![CDATA[<p>I have this sketch:</p>

<pre><code>let h = 0;
let k = 0;
let step = 0.05;
let r = 200;
let points = [];
let i = 0;
let forward = true;

function setup() {
  createCanvas(windowWidth, windowHeight);
}

function draw() {
  background(81);
  translate(width / 2, height / 2);
  noFill();
  strokeWeight(1);
  stroke(255);

  beginShape();
  for (let theta = TWO_PI; theta &gt; PI; theta -= step) {
    let x = h + r * Math.cos(theta);
    let y = k - r * Math.sin(theta);
    vertex(x, y);
    points.push(createVector(x, y));
  }
  endShape();

  strokeWeight(10);
  stroke(0);
  point(points[i].x, points[i].y);
}
</code></pre>

<p>That shows a dot moving from one side of an arc to another. When it gets to the end, however it teleports back to the start. I want to make it swing back and forth on the arc. I have tried it using the length of the points array, but that seems to be massively overflowed and it contains duplicate points. Is there a way to do this, or a better way to do what I have done?</p>
]]></description>
   </item>
   <item>
      <title>Why do i get "spikes" in these circles?</title>
      <link>https://forum.processing.org/two/discussion/25511/why-do-i-get-spikes-in-these-circles</link>
      <pubDate>Mon, 11 Dec 2017 09:48:47 +0000</pubDate>
      <dc:creator>Eddybb3</dc:creator>
      <guid isPermaLink="false">25511@/two/discussions</guid>
      <description><![CDATA[<pre><code>// 4 circles intersecting at mouse pointer

//  to do
// make it a class

void setup() {
   size(840, 600, P3D);
   noFill();
   smooth();
}

void draw() {
   background(255);

   float lastX = mouseX;
   float lastY = mouseY;
   float lastW1= 2*sqrt(sq(lastX)+sq(lastY));
   float lastW2= 2*sqrt(sq(lastX-width)+sq(lastY));
   float lastW3= 2*sqrt(sq(lastX)+sq(lastY-height));
   float lastW4= 2*sqrt(sq(lastX-width)+sq(lastY-height));
   stroke(255,0,0,10);
   for (int i = 80 ; i&gt; 1;i=i-8){  
     strokeWeight(lastW1/i);      
     ellipse(0, 0, lastW1, lastW1);
   }
   stroke(0, 255,0,10);
   for (int i = 80 ; i&gt; 1;i=i-8){  
     strokeWeight(lastW2/i);  
     ellipse(width, 0, lastW2, lastW2);
   }
   stroke(0,0,255,10);
   for (int i = 80 ; i&gt; 1;i=i-8){  
      strokeWeight(lastW3/i);  
      ellipse(0, height, lastW3, lastW3);
   }
   stroke(128,128,128,10);
   for (int i = 80 ; i&gt; 1;i=i-8){  
      strokeWeight(lastW4/i);  
      ellipse(width, height, lastW4, lastW4);
   }
 }
</code></pre>
]]></description>
   </item>
   <item>
      <title>Ellipse from Arcs.</title>
      <link>https://forum.processing.org/two/discussion/24835/ellipse-from-arcs</link>
      <pubDate>Wed, 01 Nov 2017 15:45:49 +0000</pubDate>
      <dc:creator>mnkP5</dc:creator>
      <guid isPermaLink="false">24835@/two/discussions</guid>
      <description><![CDATA[<p>I can't seem to figure out how the first (last maybe?) arc is actually two arcs.</p>

<p>Here's a codepen: 
<a href="https://codepen.io/alexdaly/pen/pdjRvx" target="_blank" rel="nofollow">https://codepen.io/alexdaly/pen/pdjRvx</a></p>
]]></description>
   </item>
   <item>
      <title>Monte Carlo method to approximate PI</title>
      <link>https://forum.processing.org/two/discussion/24528/monte-carlo-method-to-approximate-pi</link>
      <pubDate>Fri, 13 Oct 2017 10:43:54 +0000</pubDate>
      <dc:creator>MiguelNavarro</dc:creator>
      <guid isPermaLink="false">24528@/two/discussions</guid>
      <description><![CDATA[<p>Particularly, we want to find the area of the circle centered in origin. Points in its perimeter are expressed as x * x + y * y = r * r, being r, the radius, and (x, y) a point of the circumference. Our known area is the graphic window of processing, then we'll translate the coordinate axis to the center of the circle. On that origin we'll draw a circle of radius r. Then we'll "throw" N points, and we'll count how many of them "land" inside the circle. (storing the number of points in a variable called "C")
According to Monte Carlo: Area of the circle = (C / N) * (area of the graphic window). Then PI = (N / C * r * r) * (area of the graphic window).</p>

<p>The objective is to build a function that returns the apprx value of PI, given 3 parameters:</p>

<ul>
<li>N (number of points "thrown")</li>
<li>r (radius of the circumference)</li>
<li>A boolean variable that determines if the simulation must be drawn or not. </li>
</ul>

<p>If the simulation is drawn, there must be a circle in the center of the graphic window, and random points, it they land inside the circle, they must be BLUE, otherwise, they'll be RED.</p>

<p>Can someone please help me do this?</p>
]]></description>
   </item>
   <item>
      <title>Why does stokeWeight not erase after mousePressed event?</title>
      <link>https://forum.processing.org/two/discussion/24066/why-does-stokeweight-not-erase-after-mousepressed-event</link>
      <pubDate>Fri, 08 Sep 2017 15:49:51 +0000</pubDate>
      <dc:creator>And_orrr</dc:creator>
      <guid isPermaLink="false">24066@/two/discussions</guid>
      <description><![CDATA[<p>When I specify a mousePressed-event over an area, I want the default stroke weight of 1 to go up to 4 and have a colour change of the stroke to pink. This works.</p>

<p>When I press the button again though, the code draws a default stroke weight over the thick pink stoke, without 'erasing' this thick pink stroke, whereas I would like the line to simply go back to: 'white' and 'default thickness of 1'.</p>

<p>Why doesn't the previous colored strokeWeight erase after the mousePressed-event? I'm very thankful for any advice!</p>

<p>Here's the code:</p>

<pre><code>    boolean button = false; 
    int x = 50;
    int y = 50;
    int w = 100;
    int h = 75;

    void setup() {
      size(500,500);

    }

    void draw() {
      if (button) {
        stroke(#E55AD5);        
        strokeWeight(4);
        strokeJoin(ROUND);

    } else {
       stroke(255);
       strokeWeight(1); 

      }

      noFill();               
      rect(x,y,w,h);
    }

    void mousePressed() {
      if (mouseX &gt; x &amp;&amp; mouseX &lt; x+w &amp;&amp; mouseY &gt; y &amp;&amp; mouseY &lt; y+h) {
        button = !button;
      }
    }
</code></pre>
]]></description>
   </item>
   <item>
      <title>Questions about extending PVector class</title>
      <link>https://forum.processing.org/two/discussion/23575/questions-about-extending-pvector-class</link>
      <pubDate>Tue, 25 Jul 2017 00:39:03 +0000</pubDate>
      <dc:creator>somuee</dc:creator>
      <guid isPermaLink="false">23575@/two/discussions</guid>
      <description><![CDATA[<p>Having a hard time figuring out when and why this should be done. And if I don't need to do it, how do I update older code to not use it?</p>

<p><a rel="nofollow" href="https://forum.processing.org/one/topic/shoot-multiple-bullets.html">Here is an example.</a></p>

<p>How would this class be rewritten to avoid using PVector inheritance?</p>

<pre><code>class Bullet extends PVector {
  PVector vel;

  Bullet(PVector loc, PVector vel) {
    super(loc.x, loc.y);
    this.vel = vel.get();
  }

  void update() {
    add(vel);
  }

  void display() {
    fill(0, 0, 255);
    ellipse(x, y, 3, 3);
  }
}
</code></pre>
]]></description>
   </item>
   <item>
      <title>How do I add an interactive menu to a code which uploads a picture and uses it in the code?</title>
      <link>https://forum.processing.org/two/discussion/23413/how-do-i-add-an-interactive-menu-to-a-code-which-uploads-a-picture-and-uses-it-in-the-code</link>
      <pubDate>Wed, 12 Jul 2017 12:48:11 +0000</pubDate>
      <dc:creator>aless100</dc:creator>
      <guid isPermaLink="false">23413@/two/discussions</guid>
      <description><![CDATA[<p>The code draws the image with paint splatters. 
Link: <a href="https://www.openprocessing.org/sketch/392202" target="_blank" rel="nofollow">https://www.openprocessing.org/sketch/392202</a>
All credits to Jason Labbe.</p>
]]></description>
   </item>
   <item>
      <title>strokeWeight (0.1) and strokeWeight (1) look exactly the same</title>
      <link>https://forum.processing.org/two/discussion/23261/strokeweight-0-1-and-strokeweight-1-look-exactly-the-same</link>
      <pubDate>Thu, 29 Jun 2017 23:22:28 +0000</pubDate>
      <dc:creator>jmpytrpr</dc:creator>
      <guid isPermaLink="false">23261@/two/discussions</guid>
      <description><![CDATA[<p>Does it mean strokeWeight() is alway an integer because strokeWeight(1) means 1 pixel thickness and you can't have 0.1 pixels? is it the same in all programming languages?
Thank you!</p>
]]></description>
   </item>
   <item>
      <title>Artifacts when using mask() and default/P2D</title>
      <link>https://forum.processing.org/two/discussion/23124/artifacts-when-using-mask-and-default-p2d</link>
      <pubDate>Sun, 18 Jun 2017 20:17:11 +0000</pubDate>
      <dc:creator>kfrajer</dc:creator>
      <guid isPermaLink="false">23124@/two/discussions</guid>
      <description><![CDATA[<p>****EDIT</p>

<p>In the code below I have two observations and I am hopping to figure out if there is a way to solve them.</p>

<h2>First  {REN =P2D;  maskImageNow=false;}</h2>

<p>When REN is set to P2D, and maskImageNow=false, a white fill ellipse is drawn on top of a background full of nonFilled mini ellipses (background black and their stroke color is white). What I am observing is that the large main filled ellipse that follows the mouse has an artifact in its fill. You can see the borders of the circles underneath the Pgraphics object. See this image showing the problem:</p>

<p>_<img src="https://forum.processing.org/two/uploads/imageupload/846/QSGA4LZSBT0J.png" alt="Screenshot (8593)" title="Screenshot (8593)" /></p>

<p>***********EDIT: For the first case, it seems it is related to the order of drawing. In P2D, because of line 67, the white ellipse is drawn first and then the mini-bubbles on top. However, if you use JAVA2D you don't get the same effect. The ellipse and bubbles are on the same level/depth/layer. Or in other words, there is some edge blending between the mini-bubbles edge and the background in the gg (PGraphics) object  which is not observed in the JAVA2D renderer version. Consider this part of the question solved and the observation is not an artifact.</p>

<h2>Second  {REN =JAVA2D;  maskImageNow=true;}</h2>

<p>When I set the REN to JAVA2D, when I apply the mask (maskImageNow=true), the edges of the ellipses are not smooth. However, when the mask effect is off, the background ellipses do not display that rough edges effect. Next image shows this observation:</p>

<p><img src="https://forum.processing.org/two/uploads/imageupload/129/ATSG8I60FPSK.png" alt="Screenshot (8596)" title="Screenshot (8596)" /></p>

<p>Notice that during the screenshot process, the edges of the ellipses do not show that rough edge I was talking about (left image). Hopefully if you run the code you can see it directly on the sketch.</p>

<p>Can you reproduce them and do you know any way to fix them?</p>

<p>Kf</p>

<pre><code>//REFERENCES: <a href="https://forum.processing.org/two/discussion/23093/brightness-pixel-doesnt-work#latest" target="_blank" rel="nofollow">https://forum.processing.org/two/discussion/23093/brightness-pixel-doesnt-work#latest</a>

//INSTRUCTIONS:
//         *--   Click to enable or disable the masking effect


//===========================================================================
// FINAL FIELDS:
final int maxTries=9000;
final int nCircles=2000;
final String REN=P2D;


//===========================================================================
// GLOBAL VARIABLES:

ArrayList&lt;CircleStruct&gt; c;
PGraphics pg;
PGraphics gg;
boolean maskImageNow=false;

//===========================================================================
// PROCESSING DEFAULT FUNCTIONS:

void settings() {
  size(400, 600, REN);
  smooth(8);
}

void setup() {

  textAlign(CENTER, CENTER);
  rectMode(CENTER);
  ellipseMode(RADIUS);

  fill(255);
  strokeWeight(2);

  pg = createGraphics(width, height, REN);
  //pg.smooth(4);

  c=new ArrayList&lt;CircleStruct&gt;();
  gg=createGraphics(width, height, REN);  
  //gg.smooth(4);
  fillWithCircles(nCircles);
  gg.beginDraw();  
  gg.noFill();
  gg.stroke(255);
  gg.strokeWeight(2);
  gg.clear();
  for (CircleStruct pc : c) {
    pc.draw(gg);
  }
  gg.endDraw();
}



void draw() {
  background(0);

  pg.beginDraw();
  pg.clear();
  pg.ellipse(mouseX, mouseY, 100, 100);
  pg.endDraw();

  image(pg, 0, 0);

  if (maskImageNow) 
    gg.mask(pg);

  image(gg, 0, 0);
}

void keyReleased() {
}

void mouseReleased() {
  maskImageNow=!maskImageNow;  //Toggle action

  if (maskImageNow==false) {
    gg.beginDraw();
    gg.noFill();
    gg.stroke(255); 
    gg.strokeWeight(2);
    gg.clear();
    for (CircleStruct pc : c) {
      pc.draw(gg);
    }
    gg.endDraw();
  }
}



//===========================================================================
// OTHER FUNCTIONS:

void fillWithCircles(int n) {
  noFill();
  stroke(255);
  c.clear();  

  for (int i=0; i&lt;n; i++) {
    CircleStruct cir=new CircleStruct();
    boolean overlap=true;
    int ntries=0;
    while (overlap &amp;&amp; ntries&lt;maxTries) {
      overlap=false;
      ntries++;
      for (CircleStruct pc : c) {
        if (cir.overlaps(pc)) {
          overlap=true;
          cir.reGenerateCircle();
          break;
        }
      }
    }

    if (ntries&gt;=maxTries) {
      println("Stop trying placing circles at counter " + i + " out of "+n);
      break;
    }

    c.add(cir);
  }
}


class CircleStruct {

  final static int minRad=3;
  final static int maxRad=12;

  float w;
  float h;
  float rad;

  CircleStruct() {
    generateCircle();
  }

  void generateCircle() {
    w=random(width);
    h=random(height);
    rad=random(minRad, maxRad);
  }

  void reGenerateCircle() {
    generateCircle();
  }

  void draw() {
    ellipse(w, h, rad, rad);
  }

  void draw(PGraphics gg) {
    gg.ellipse(w, h, rad, rad);
  }

  boolean overlaps(CircleStruct ptrC) {
    return overlaps(ptrC.w, ptrC.h, ptrC.rad);
  }

  boolean overlaps(float _w, float _h, float _r) {
    return dist(w, h, _w, _h)&lt;rad+_r;
  }
</code></pre>
]]></description>
   </item>
   <item>
      <title>How add a parameter for the line thickness to my function myOwnRect made with point</title>
      <link>https://forum.processing.org/two/discussion/21410/how-add-a-parameter-for-the-line-thickness-to-my-function-myownrect-made-with-point</link>
      <pubDate>Wed, 15 Mar 2017 12:48:07 +0000</pubDate>
      <dc:creator>MirielLind</dc:creator>
      <guid isPermaLink="false">21410@/two/discussions</guid>
      <description><![CDATA[<p>Hi everybody, I was doing this exercise:</p>

<pre><code>/** Program description: 27. Make a function myOwnRect(topLeftX, topLeftY, bottomRightX, bottomRightY)
 that only uses point() as output function (i.e. not line() or rect() etc.). 
 Add a parameter for the line thickness.
 */
</code></pre>

<p>but I am stuck in the last part. Can someone help me?</p>

<pre><code>void setup()
{
  size(600, 600);
  background(#ff9999);
  stroke(#0000ff);
  noLoop();
}

void myOwnRect(int tx, int ty, int bx, int by, int thickness)//(topLeftX, topLeftY, bottomRightX, bottomRightY(topLeftX, topLeftY, bottomRightX, bottomRightY)
{
  for (int i=tx; i&lt;=bx; i++)   
  {
    for (int j=ty; j&lt;=by; j++)
    {
      if (i==tx || i==bx || j==ty || j==by)
      { 
        point(i, j);
      }
    }
  }
}
void draw()
{
  myOwnRect(10, 10, 20, 20, 1);
  myOwnRect(10, 100, 250, 250, 3);
  myOwnRect(200, 200, 350, 350, 6);
  stroke(#00ff00);
}
</code></pre>
]]></description>
   </item>
   <item>
      <title>How to stop a random line</title>
      <link>https://forum.processing.org/two/discussion/21479/how-to-stop-a-random-line</link>
      <pubDate>Sun, 19 Mar 2017 15:24:21 +0000</pubDate>
      <dc:creator>stephanieavans</dc:creator>
      <guid isPermaLink="false">21479@/two/discussions</guid>
      <description><![CDATA[<p>Hi,</p>

<p>How can I stop a random line? I would like to use it as a background when my canvas is filled with colors. After that I would like to draw a ellipse with mouseClicked.</p>

<p>int value = 0; <br />
boolean isEllipse = true;</p>

<p>void setup() { <br />
  size(800,600); <br />
  noFill(); <br />
}</p>

<p>void draw() { <br />
  strokeWeight(8); <br />
  stroke(59,145,234); <br />
  float distance_top = random(800); <br />
  line(0,distance_top, 800,distance_top);</p>

<p>if(isEllipse) { <br />
    ellipse(650, 650, 20, 20); <br />
  }</p>

<p>else{ <br />
    rect(800, 600, 0, 0); <br />
  } <br />
};</p>

<p>void mouseClicked(){ <br />
  stroke(0); <br />
  ellipse(100, 100, 50, 50); <br />
  if (value == 0 ) { <br />
    value = 255; <br />
  }  <br />
  else { <br />
    value = 0; <br />
  } <br />
}</p>
]]></description>
   </item>
   <item>
      <title>Help to calculate the Rect on this image beginner?</title>
      <link>https://forum.processing.org/two/discussion/21259/help-to-calculate-the-rect-on-this-image-beginner</link>
      <pubDate>Wed, 08 Mar 2017 17:41:27 +0000</pubDate>
      <dc:creator>blank1000</dc:creator>
      <guid isPermaLink="false">21259@/two/discussions</guid>
      <description><![CDATA[<p>I'm a beginner and wanna know how I can calculate this image to forms as rect(40, 40, 35, 45); and such. I just really love this image and want to recreate it in someway.
<img src="https://www.reproduction-gallery.com/catalogue/uploads/1479883875_large-image_piet-mondrian-untitled-a-lg.jpg" alt="" /></p>
]]></description>
   </item>
   <item>
      <title>Trying to drawn lines with round ends [using strokeCap(ROUND)] in P3D mode, but they stay square</title>
      <link>https://forum.processing.org/two/discussion/21075/trying-to-drawn-lines-with-round-ends-using-strokecap-round-in-p3d-mode-but-they-stay-square</link>
      <pubDate>Wed, 01 Mar 2017 10:47:18 +0000</pubDate>
      <dc:creator>Marc</dc:creator>
      <guid isPermaLink="false">21075@/two/discussions</guid>
      <description><![CDATA[<p>I'm trying to draw lines with rounded end in 3D mode, but they always seem to have square ends.
(In ordinary default 2D mode lines can have rounded ends).</p>

<p>If I use strokeCap(ROUND) and then draw lines in P3D mode after I have called "size(1920,1080,P3D);" the line ends are square:</p>

<p>size(1920,1080,P3D);</p>

<p>...</p>

<p>stroke(160 ,    30,  155 );</p>

<p>strokeWeight(strokeweight1);</p>

<p>strokeCap(ROUND);</p>

<p>line(x1,y1,   Zcoord, x2,y2, Zcoord   );</p>

<p>Am I missing a command? Could it be that Round-ended lines are not supported in 3D?</p>

<p>Thanks!</p>
]]></description>
   </item>
   <item>
      <title>Why is this stem drawing on top of the petals (line, fill question)</title>
      <link>https://forum.processing.org/two/discussion/20864/why-is-this-stem-drawing-on-top-of-the-petals-line-fill-question</link>
      <pubDate>Sat, 18 Feb 2017 14:51:14 +0000</pubDate>
      <dc:creator>edhebert</dc:creator>
      <guid isPermaLink="false">20864@/two/discussions</guid>
      <description><![CDATA[<p>Hi-</p>

<p>Please have a look at this sketch. <a href="http://codepen.io/edhebert/pen/GraYLZ?editors=0010" target="_blank" rel="nofollow">http://codepen.io/edhebert/pen/GraYLZ?editors=0010</a></p>

<p>I'm drawing the stem (line) prior to the petals (which are drawn with a rotation). Yet the line appears atop the petals (but beneath the yellow flower center, which is drawn at the end of sketch.)</p>

<p>Note the noLoop() call that's commented out in setup(). If I uncomment that, the sketch draws as expected, with the stem behind the petals.</p>

<p>Here's the code, for those who don't feel like looking at the codepen:</p>

<pre><code>    var petal_angle = 0;

    function setup() {
        createCanvas(windowWidth, windowHeight);
        background(0);
        // noLoop();
    }

    function draw() {

        //make center of canvas the 0, 0 origin
        translate(width / 2, height / 2);

        var petal_color = color(128, 212, 255);

        //define one petal as an object
        var petal = {
            x: 120,
            y: 0,
            petal_width: 150,
            petal_height: 75
        }

        //draw stem
        stroke(0,128,0);
        strokeWeight(20);
        line(0, 0, 0, height / 2 - 50);

        fill(petal_color);
        noStroke();

        push();
        for (petal_angle; petal_angle &lt; 360; petal_angle += 45) {
            rotate(radians(petal_angle));
            ellipse(petal.x, petal.y, petal.petal_width, petal.petal_height);
        }
        pop();

        //draw center of flower on top of petals
        fill(255, 255, 0);
        ellipse(0, 0, 130, 130);

    }
</code></pre>
]]></description>
   </item>
   <item>
      <title>My code don't work can you help me ?</title>
      <link>https://forum.processing.org/two/discussion/20363/my-code-don-t-work-can-you-help-me</link>
      <pubDate>Thu, 19 Jan 2017 20:18:31 +0000</pubDate>
      <dc:creator>WarCatss</dc:creator>
      <guid isPermaLink="false">20363@/two/discussions</guid>
      <description><![CDATA[<p>I was following a tutorial on p5.js and after realized a constructor function my code didn t work the object didn t appear on the screen. 
Here is my code:</p>

<pre><code>    var sommet = [];

    function setup() {
      createCanvas(400, 400);
      for(var i = 0; i &lt; 4; i++)
      {
        sommet[i] = new Sommet();
      }
    }
    function draw() {
      background(100);
      for(var j = 0; j &lt; sommet.lenght; j++)
      {
        sommet[j].display();
      }
    }
    function Sommet() {
      this.x = random(0, width);
      this.y = random(0, height);

      this.display = function()
      {
        strokeWeight(10);
        stroke(255);
        point(this.x, this.y);
      }
    }
</code></pre>

<p>Thank you for helping me btw.</p>
]]></description>
   </item>
   <item>
      <title>Redraw Line Bug?</title>
      <link>https://forum.processing.org/two/discussion/20001/redraw-line-bug</link>
      <pubDate>Fri, 30 Dec 2016 20:14:32 +0000</pubDate>
      <dc:creator>batman42ca</dc:creator>
      <guid isPermaLink="false">20001@/two/discussions</guid>
      <description><![CDATA[<p>I'm trying to draw a line, then redraw that same line using the background colour (I don't want to redraw the background) but something is being left behind.</p>

<p>I modified one of the examples on this page to test it:</p>

<p><a href="https://p5js.org/reference/#/p5/blendMode" target="_blank" rel="nofollow">https://p5js.org/reference/#/p5/blendMode</a></p>

<p>Here's my code. Am I doing something wrong or did I discover a bug?</p>

<pre><code>background(0);
blendMode(REPLACE);
strokeWeight(30); // will work with a stroke weight of 1 as well - 30 is easier to see.
stroke(255);
line(25, 25, 75, 75);
stroke(0);
line(25, 25, 75, 75);
</code></pre>
]]></description>
   </item>
   <item>
      <title>Can you ignore mousePressed when drawing during mouseDragged?</title>
      <link>https://forum.processing.org/two/discussion/19760/can-you-ignore-mousepressed-when-drawing-during-mousedragged</link>
      <pubDate>Thu, 15 Dec 2016 01:55:26 +0000</pubDate>
      <dc:creator>jacorre</dc:creator>
      <guid isPermaLink="false">19760@/two/discussions</guid>
      <description><![CDATA[<p>When dragging with the mouse/touch, I am drawing a line on the canvas. However, if I click/touch without dragging it's drawing a dot on the canvas. Is there any way to stop that dot from appearing? Please see my <a rel="nofollow" href="http://codepen.io/jacorre/pen/woyNXG?editors=0010#0">example on CodePen</a>. Thank you!</p>
]]></description>
   </item>
   <item>
      <title>Click and Drag with Arrays of Objects</title>
      <link>https://forum.processing.org/two/discussion/19190/click-and-drag-with-arrays-of-objects</link>
      <pubDate>Mon, 21 Nov 2016 16:13:35 +0000</pubDate>
      <dc:creator>nlogler</dc:creator>
      <guid isPermaLink="false">19190@/two/discussions</guid>
      <description><![CDATA[<p>Hey Everyone,</p>

<p>New to the forum/community. I have been learning a ton with p5js (and processing)! I have a question about clicking and dragging objects in an array. The click and drag seems to be working, but I'm not getting all my visual feedback. My stroke isn't changing on the click and drag (highlight effect). Am I missing something obvious? Or is this not the best way to get click and drag behavior working? (*This is an adaptation of click and drag from the processing site). Code below:</p>

<pre><code>    var boxes = [];

    function setup() {
      createCanvas(500,500);
      for(var i=0; i&lt;20; i++){
        boxes.push(new Box(random(255),random(10,30)));
      }
    }

    function draw() {
      background(0,200,200);
      for(var i = 0; i&lt;boxes.length; i++){
        boxes[i].show();
      }
    }


    function mousePressed() {
      for(var i = 0; i&lt;boxes.length; i++){
        if (boxes[i].boxover ) {
            boxes[i].locked = true;
            strokeWeight(4);
            stroke(0, 150, 255);
            print("mouse is pressed")
        } else {
            noStroke();
            boxes[i].locked = false;
            print("mouse isn't pressed")
        }
        boxes[i].xoffset = mouseX - boxes[i].xpos;
        boxes[i].yoffset = mouseY - boxes[i].ypos
        print(boxes[i].locked);
      }
    }

    function mouseDragged() {
      for(var i = 0; i&lt;boxes.length; i++){
        if (boxes[i].locked) {
            boxes[i].xpos = mouseX - boxes[i].xoffset;
            boxes[i].ypos = mouseY - boxes[i].yoffset;
        }
      }
    }

    function mouseReleased() {
      for(var i = 0; i&lt;boxes.length; i++){
        boxes[i].locked = false;
      }
    }

//Box Constructor

function Box(tempColor,tempSize) {
    this.c = tempColor
    this.xpos = random(width);
    this.ypos = random(height);
    this.boxsize = tempSize;
    this.boxover = false;
    this.locked = false;
    this.xoffset = 0;
    this.yoffset = 0;
    rectMode(RADIUS);

    this.show = function() {
        if (mouseX &gt; this.xpos - this.boxsize &amp;&amp; mouseX &lt; this.xpos + this.boxsize &amp;&amp;
            mouseY &gt; this.ypos - this.boxsize &amp;&amp; mouseY &lt; this.ypos + this.boxsize) {
            this.boxover = true;
            fill(255);
        } else {
            this.boxover = false;
            noStroke();
            fill(this.c);
        }
        rect(this.xpos, this.ypos, this.boxsize, this.boxsize,7);
    };
}
</code></pre>

<p>Any insights and links to other materials is greatly appreciated. Thanks!</p>
]]></description>
   </item>
   <item>
      <title>How to create a Sketchbook (Drawing app)?</title>
      <link>https://forum.processing.org/two/discussion/18989/how-to-create-a-sketchbook-drawing-app</link>
      <pubDate>Fri, 11 Nov 2016 18:16:20 +0000</pubDate>
      <dc:creator>czelisa</dc:creator>
      <guid isPermaLink="false">18989@/two/discussions</guid>
      <description><![CDATA[<p>Hi everyone,</p>

<p>I am pretty new to programming and I'm using p5 so it would be amazing if you could help me out. Basically I would like to create a drawing app, I've managed to create really simple drawing functions but I have a few questions and I'm not sure how to go about it. I know my questions aren't that specific yet - If you could just refer me to the right references to look at, that would help me a lot.</p>

<ol>
<li><p>Would it be possible to have an image of a Sketchbook laying on a desk as my background and only let the user draw on the actual book (not the rest of the background)?</p></li>
<li><p>How can I create different drawing tools (like pen, pencil etc.) that can be activated by clicking on an icon/image.</p></li>
<li><p>Is it possible to let someone draw something and then add filters to it. (editing the finished drawing)</p></li>
<li><p>Is there a way of including buttons, that let someone share what they've drawn on the canvas on Twitter, Facebook etc.</p></li>
</ol>

<p>Thanks a lot,
Elisa</p>
]]></description>
   </item>
   <item>
      <title>Filling shapes with a pattern.</title>
      <link>https://forum.processing.org/two/discussion/18710/filling-shapes-with-a-pattern</link>
      <pubDate>Tue, 25 Oct 2016 18:09:17 +0000</pubDate>
      <dc:creator>mapspug</dc:creator>
      <guid isPermaLink="false">18710@/two/discussions</guid>
      <description><![CDATA[<p>Hi I am new to processing and I am trying to create a shape (a rectangle with curved edges) and fill it with a pattern. I know I can probably fill it using a for loop, but that seemed a little daunting. The alternative approach I thought of is to use an image and fill the shape with that image; however, I can't seem to figure out how to fill out the curved edges.</p>

<pre><code>void draw() {
  background(#FFFAFA);

strokeWeight(5);
fill(255);
rect(70,60,800,470,0,105,105,0);
//resizes the image and fills a rectangle shape
PImage static1 = loadImage("static.jpg");
static1.resize(700, 463);
image(static1, 73, 64);

}
</code></pre>
]]></description>
   </item>
   <item>
      <title>How do I get p5.js to remove certain objects within my program (e.g. button)?</title>
      <link>https://forum.processing.org/two/discussion/18789/how-do-i-get-p5-js-to-remove-certain-objects-within-my-program-e-g-button</link>
      <pubDate>Sun, 30 Oct 2016 15:13:12 +0000</pubDate>
      <dc:creator>ish2nv</dc:creator>
      <guid isPermaLink="false">18789@/two/discussions</guid>
      <description><![CDATA[<p>var img;
var buttonhover;
var buttonhover2;
var header = ["Pop the bubble game"]
var buttontext = ["START","HELP"]</p>

<p>function preload() {
  img = loadImage("bubbleimg.png")</p>

<p>}
function setup() {
  createCanvas(600,620)</p>

<p>}</p>

<p>function draw() {
 image(img,0,0)</p>

<p>img.resize(600,620)</p>

<p>stroke(0)
  strokeWeight(4);
  textFont("stencil")
  fill(255);
   textSize(46);
text(header[0],46,59);</p>

<p>ellipseMode(CENTER);
  stroke(5,0,0)
  fill(55,120,260)
  strokeWeight(5);</p>

<p>var space = dist(mouseX, mouseY,296,194)
  if (space&lt;100 ) {
    buttonhover = true;}
    else {
      buttonhover = false;
    }</p>

<pre><code>if (buttonhover === true) {
  fill(0,255,0);}

ellipse(300,200,200,200);
stroke(0)
  textFont("stencil")
</code></pre>

<p>strokeWeight(4);
  fill(255);
   textSize(45);
text(buttontext[0],230,211);</p>

<pre><code>draw2()
</code></pre>

<p>}</p>

<p>function draw2() {</p>

<p>ellipseMode(CENTER);
  stroke(5,0,0)
  fill(55,120,260)
  strokeWeight(5);</p>

<p>var space = dist(mouseX, mouseY,296,450)
  if (space&lt;100 ) {
    buttonhover2 = true;}
    else {
      buttonhover2 = false;
    }</p>

<pre><code>if (buttonhover2 === true) {
  fill(255,0,0);
}

ellipse(300,450,200,200);

stroke(0)
  textFont("stencil")
</code></pre>

<p>strokeWeight(4);
  fill(255);
   textSize(45);
text(buttontext[1],244,464);</p>

<p>}</p>

<p>function mousePressed() {
  if (buttonhover == true) {
   draw3()
  }</p>

<p>}</p>

<p>function draw3 () {
  remove()
}</p>
]]></description>
   </item>
   <item>
      <title>transitioning shapes</title>
      <link>https://forum.processing.org/two/discussion/18453/transitioning-shapes</link>
      <pubDate>Sat, 08 Oct 2016 04:29:22 +0000</pubDate>
      <dc:creator>wjsandbe</dc:creator>
      <guid isPermaLink="false">18453@/two/discussions</guid>
      <description><![CDATA[<p>I'm trying to use mouseClicked to make these arcs move to the top right corner and shrink in size. I momentarily had it, but lost it while trying to add something else haha.</p>

<pre><code>    void setup(){
      fullScreen();

    }
    int x1 = 0;
    int x2 = 0;
    int y1 = 0;
    int y2 = 0;


    void draw(){  
     x1 = width/2;
     x2 = 600;
     y1 = height/2;
     y2 = 600;

       stroke(0);
      strokeWeight(5);
      fill(0);
      arc(x1, y1, x2, y2, PI, PI*3.25); //Arc1

  stroke(0);
      strokeWeight(5);
      fill(#FFF700);
      arc(x1, y1, x2, y2, PI*2.25, PI*2.75);//Arc2

 fill(#FF0000);
       stroke(0);
      strokeWeight(5);
      arc(x1, y1, x2, x2, PI*2.75, PI*3.25);//Arc3

stroke(0);
      strokeWeight(5);
      fill(#FFFFFF);
      arc(x1, y1, x2, y2, TWO_PI-PI/4, PI*2.25);//Arc4
    }

    void mouseclicked(){
        x1 = (width/3 + (width/3 + width/4));
      y1 = height/3;
      x2 = 80;
      y2 = 80;
    }
</code></pre>
]]></description>
   </item>
   <item>
      <title>What are point() and line() doing on the pixel level?</title>
      <link>https://forum.processing.org/two/discussion/17797/what-are-point-and-line-doing-on-the-pixel-level</link>
      <pubDate>Tue, 09 Aug 2016 05:54:49 +0000</pubDate>
      <dc:creator>mscottveach</dc:creator>
      <guid isPermaLink="false">17797@/two/discussions</guid>
      <description><![CDATA[<p>Looking at the result of point and line under a magnifying glass, I realized that my assumption that there
was a 1 to 1 correspondence between processing pixels and my monitor's pixels was naive.</p>

<p>I was surprised by a few things:</p>

<p>When I try to draw a line using a series of point calls, it looks very different than when I use line and neither
one always does what I expected. (For example, drawing a simple line segment will look one way in isolation
and then the entire line will look different if its drawn so that one of it's ends is adjacent to a different line.)</p>

<p>Can anyone point me to a source where I can learn what's happening on the pixel level with these functions.</p>
]]></description>
   </item>
   </channel>
</rss>