Module
Caman
- Package
- purescript-camanjs
- Repository
- m3tti/purescript-camanjs
#CurvePoints Source
type CurvePoints = { p0 :: Point, p1 :: Point, p2 :: Point, p3 :: Point }
Defining a bezier curve
#ProcessPoint Source
data ProcessPoint :: Type
#Processor Source
data Processor
Processors define the Categories of diffrent image functinalities
PointProcessor is a processor which defines a function how to modify the pixel and its surrounding
Kernel define a simple matrix (1 dimensional array) that describes how to modify a certain pixel based on the ones around it. The GIMP documentation does a great job at explaining this.
Constructors
#getPixelRelative Source
getPixelRelative :: ProcessPoint -> Point -> Effect RGBA
Used in a PointProcessor. This function returns the pixel on the given relative position
#getPixel Source
getPixel :: ProcessPoint -> Point -> Effect RGBA
Used in a PointProcessor. Gets the current pixel.
#putPixelRelative Source
putPixelRelative :: ProcessPoint -> Point -> RGBA -> Effect Unit
Used in a PointProcessor. Sets the pixel on the given relative position
#Filter Source
#LayerOption Source
data LayerOption
Layer Options are used in a New layer to do adjustments before modifing the new layer with filters
Constructors
- Modules
- Caman