Skip to content

xinkiknix/Processing-Grid-dashedlines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Processing-Grid-dashedlines

A set of 2 classes that allow you to create Gridlines in Procesing using dashed lines. define: Grid grid = new Grid(100); where 100 is the spacing in pixels

grid.setColor(color(125,125,125),color(20,20,20)); sets the color of the main grid and of the secondary grid

in draw()

grid.grid(); //show main grid

grid.subGrid(); // show subgrid

Mouseclicked (right mouse button) is used to display x-y coordinates in the console

void mouseClicked(MouseEvent event) {

if (event.getButton() == 39) { //right mouse button click

println(" " + mouseX +"-" + mouseY);

} }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published