Releases: harshkhandeparkar/gpujs-real-renderer
Releases · harshkhandeparkar/gpujs-real-renderer
Per Tool Settings
Removed (RealDrawBoard)
changeBrushSize,changeBrushColorandchangeEraserSizemethods: Dropped in favor of thechangeToolSettingmethod.brushSize,brushColoranderaserSizeproperties: In favor of thetoolSettingsproperty.
Added (RealDrawBoard)
toolSettingsproperty: Stores the settings for all the tools. See README.changeToolSettingmethod: Changes a specific setting. See README.changeRatetool setting: To change the rate at which therainbow_brushtool changes color.lineThicknessandlineColortool settings: To separately set the line and brush colors.
Rainbows!
Optimized Snapshots
Changed
- <RealDrawBoard>: Undo snapshot order changed so that the whiteboard changes first.
Fixed
- <RealDrawBoard>: Line tool works with undos.
Superfast Snapshots!
Changed
- <RealRenderer>:
loadData()andgetData()use 3D arrays instead of flattened arrays which reduces time by cutting the extra flattening step.
Optimizations, Optimizations and Optimizations
Changed (RealDrawBoard)
- If undos are off, board initializes and clears RAPIDLY.
- Drawing on the board is faster.
- Preview are faster.
- Everything is better.
Infinitely Better Anti Aliasing
Changed
- Used Xiaolin Wu's algorithm to anti alias circles and lines.
Better Line Tool Preview
Fixed
- : Preview for the Line Tool has rounded corners both at the start and the end of the line.
Tools!
Undo Optimizations
Added
- : Added an option
allowUndoto turn off undos. Undos turned off by default due to performace issues.
Fixed
- : The option
maxUndosworks correctly.
Data Loading and Better Undos!
Added
- :
getDataandloadDatamethods to get a snapshot of the current pixels and load a snapshot. - :
maxUndosoption to specify a limit on the number of undos.
Fixed
- Undos are now more accurate.
- Undos are also much much faster!