Skip to content

gl-vis/gl-scatter2d-sdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gl-scatter2d-sdf

This code is similar to gl-scatter2d-fancy, but utilizes SDF technique to render symbols.

const createPlot = require('gl-plot2d')
const createScatter = require('gl-scatter2d-fancy')

let plot = createPlot({gl, ...})

let scatter = createScatter(plot, {
	positions:    [.5,.5, .6,.7, ...],
	sizes:        [2, 3, ...],
	colors:       [0,0,0,1, .5,.5,1,1, ...],
	glyphs:       ['x', 'y', ...],
	borderWidths: [.5, 1, ...],
	borderColors: [1,0,0,.5, 0,0,1,.5, ...]
})

plot.draw()

License

(c) 2016 Dima Yv. MIT License

About

Scatter plot with SDF method of rendering points

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •