This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
size() bug
There seems to be a bug in the size() method of processing.js. It resets the line width when it is called (or more accurately, doesn’t preserve it like it does for the fill and stroke colors).
This can be seen by taking the basic example from the front page, starting it, and then changing the size dynamically – the circle border becomes much thinner.
FIX: Add two lines to the size method, preserving the lineWidth of the current context:
p.size = function size( aWidth, aHeight ) { var fillStyle = curContext.fillStyle; var strokeStyle = curContext.strokeStyle; var lineWidth = curContext.lineWidth;
curElement.width = p.width = aWidth; curElement.height = p.height = aHeight;
curContext.fillStyle = fillStyle; curContext.strokeStyle = strokeStyle; curContext.lineWidth = lineWidth; };






