loaders/blend_curve_maps

  Source   Edit

Types

CurveMapPoint = object
  vec*: array[3, (float, float)]
  h1*, h2*: CurveMapPointHandleType
  Source   Edit
CurveMapPointHandleType = enum
  Auto, Vector, Clamped
  Source   Edit
RampColorMode = enum
  Rgb, Hsv, Hsl
  Source   Edit
RampHueInterpolationType = enum
  Near, Far, Cw, Ccw
  Source   Edit
RampInterpolationType = enum
  Linear, Ease, BSpline, Cardinal, Constant
  Source   Edit

Procs

func calc_all_handles_curvemap(points: seq[CurveMapPoint]): seq[CurveMapPoint] {.
    ...raises: [], tags: [].}
  Source   Edit
func curves_to_mapping_byte_pixels(curves: seq[seq[CurveMapPoint]]; size: int;
    in_start, in_end, out_scale, out_offset: float): ArrRef[uint8] {.
    ...raises: [ValueError], tags: [].}
  Source   Edit
func curves_to_mapping_float_pixels(curves: seq[seq[CurveMapPoint]]; size: int;
    in_start, in_end, out_scale, out_offset: float): ArrRef[float32] {.
    ...raises: [ValueError], tags: [].}
  Source   Edit
func get_line_equations(first, last: CurveMapPoint): ((float, float),
    (float, float)) {....raises: [], tags: [].}
  Source   Edit
func make_hue_ramp_pixels(steps: seq[(array[4, float32], float32)]; size: int;
                          color_mode: RampColorMode;
                          ipotype_hue: RampHueInterpolationType): ArrRef[float32] {.
    ...raises: [ValueError], tags: [].}
  Source   Edit
func make_ramp_pixels(steps: seq[(array[4, float32], float32)]; size: int;
                      ipotype: RampInterpolationType): ArrRef[float32] {.
    ...raises: [ValueError], tags: [].}
  Source   Edit