FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 535 : wrong coordinate with rect() after strokeWeight(1)
Last modified: 2007-07-17 15:00
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P3
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
vect
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2007-03-13 06:15
code:
strokeWeight(1) ;
rect(0,0,width-1,height-1) ;
It draws a square with top line missing.
Try same code in larger window size (eg. size(200,200)).
Then you'll find 1 pixel gap at the bottom of the window.
So the rect seems to be shifted 1 pixel to the top.
found in processing 0124
running on Mac OS 10.4.8
Additional Comment
#1 From fry 2007-03-13 08:01
confirmed on my mac, thanks.
Additional Comment
#2 From ewjordan 2007-07-16 00:38
For some reason I can't confirm this one - I tried on both 0124 and 0125,
but I always get a perfect outline of the window. Is this an issue of
different graphics cards, or am I maybe misunderstanding the bug? I'm
using an ATI Mobility Radeon 9700 and running OS X 10.4.10 (also checked an
XP box, couldn't reproduce there either, though I don't know the graphics
card specs). If that's the problem, this one's going to be tough or
impossible to patch because it's happening past the level of what
Processing can control (though it reminds me quite a bit of the inaccuracy
issues in P3D that I've been fighting with, it's trickier to solve since at
least in P3D we have pixel-perfect software control of what shows up on
screen, whereas JAVA2D rasterizes automagically once we call the drawing
function).
Additional Comment
#3 From fry 2007-07-17 15:00
Appears to be specific to Java 1.4 on Mac OS X, not seeing the bug with
Java 1.5.
So I'll mark it INVALID since it's Apple's bug.