Open main menu

CDOT Wiki β

Changes

m
no edit summary
*''pushStyle()'' calls ''curContext.save()'' and increments ''pushedStates'' by one.
*Excess pops are ignored.
 
====Related Mozilla bugs====
*[https://bugzilla.mozilla.org/show_bug.cgi?id=451165 #451165] - ''CanvasRenderingContext2D.fillStyle'' and ''strokeStyle'' accept invalid colours
** pushStyle() and popStyle() use ''CanvasRenderingContext2D.save()'' and ''restore()''. These functions save ''fillStyle'' and ''strokeStyle''.
===boolean()===
*Boolean arguments are returned as themselves.
====Related Mozilla bugs=strokeCap()===*[https://bugzillaModifies context.mozillalineCap.*ROUND -> context.org/show_buglineCap="round";*SQUARE -> context.cgi?idlineCap=451165 #451165] "butt";*PROJECT - > context.lineCap="square";*Processing default (ROUND) set in '''function''CanvasRenderingContext2D.fillStyle'' and 'init'strokeStyle'' accept invalid colours** pushStyle() and popStyle() use ''CanvasRenderingContext2D.save()*'' and 'function'restore()''. These functions save ''fillStyle'size' and ''strokeStyle''modified to respect previous settings===boolean()===**Used to recreate context and reset settings, which overwrote the desired default.
==Things to do==
1
edit