Stippling

Description:
  • This is the code documentation for our Stippling class.

    This documentation contains the following methods :

    • Grid
    • GridVisualization
    • Stippling
Source:
Author:
  • Noah Watzal, Aymeric Hollaus

This is the code documentation for our Stippling class.

This documentation contains the following methods :

  • Grid
  • GridVisualization
  • Stippling

Methods

(inner) calculateDensityAndMoments(delaunay)

Description:
  • calculates density and moments of the diagram.

Source:
Parameters:
Name Type Description
delaunay

(inner) constructor(grid, radius_extent, threshold, delta_threshold, stipples)

Description:
  • Creates the class instances for Stippling.

Source:
Parameters:
Name Type Description
grid

The Grid value .

radius_extent

The value for the radius of the grid.

threshold

The threshold value.

delta_threshold
stipples

Number of Stipples

(inner) handleDeletionAndSplitting(density_to_radius, grid_extent, delaunay, voronoi)

Description:
  • This is the main method of the class which is handling the deletion and splitting of the stipples.

Source:
Parameters:
Name Type Description
density_to_radius
grid_extent
delaunay
voronoi

(inner) iterate()

Description:
  • iteration for deleting, splitting and relaxing of the stipples

Source:
Returns:

deleted, relaxed and splitted stipples.

(inner) random_stipples(num)

Description:
  • Generates the random stipples inside the given width and height of the grid.

Source:
Parameters:
Name Type Description
num Number

length of the stipples array.

Returns:

the stipples.

(inner) stipple_del_thresh() → {Number}

Description:
  • Returns vlaues of upper and lower threshold.

Source:
Returns:

upper and lower threshold.

Type
Number

(inner) stipple_size() → {Number}

Description:
  • Returns the size of the stipples.

Source:
Returns:

min and max radius.

Type
Number

(inner) updateThreshold(threshold)

Description:
  • This method is just for upating the threshold in the class.

Source:
Parameters:
Name Type Description
threshold

The Grid value.