Hey folks. Newly returned to Processing after years away.
Trying to get Processing to behave itself on my Windows 10 Surface Book. It’s displaying very strangely with heavy aliasing on diagonal lines, to the point of pixellation. Example below, compare the difference between the straight and diagonal lines. Ignore the red colour of my red light filter.
I suspect my monitor, being 3000x2000 pixels and 200% scaling may be responsible. But I’ve tried the ‘Disable HiDPI Scaling’ option, tried another monitor and played around with the scaling settings in Windows and nothing seems to change it.
Code below for comparison to your display:
void setup()
{
background(255);
size(1100, 600);
strokeWeight(1);
}
void draw()
{
fill(0, 0, 0, 0);
int ct = 12;
for (int i = 0; i < ct - 2; i++)
{
float s = 500;
line(100, 100, 100+(s*i)/ct, s);
line(100, 100, s, 100+(s*i)/ct);
circle(800, 300, (s*i)/ct);
}
}
Thanks sableRaph and glv! I thought it was some big complicated issue with my monitor rendering, it turns out I’ve just forgotten the basics of processing thanks for your help, I would have bashed my head against this one for a long time.
Thick lines just caused by it drawing them a million times on top of each other. Duh.