llgcode / draw2d

2D rendering for different output (raster, pdf, svg)
BSD 2-Clause "Simplified" License
1.09k stars 105 forks source link

nice work, how do i get the color code of a particular pixel? #174

Closed hiqsociety closed 2 years ago

hiqsociety commented 2 years ago

nice work, how do i get the color code of a particular pixel?

llgcode commented 2 years ago

Hi @hiqsociety, it's a vector image library so there's no pixel related feature. However, you can use the golang/image builtin package if you generate raster images. see also this package https://github.com/golang/image