hexwave_change function

  1. @Native<Void Function(Pointer<HexWave>, Int, Float, Float, Float)>(ffi.Pointer<HexWave>, ffi.Int, ffi.Float, ffi.Float, ffi.Float)>()
void hexwave_change(
  1. Pointer<HexWave> hex,
  2. int reflect,
  3. double peak_time,
  4. double half_height,
  5. double zero_wait,
)

see docs above for description

reflect is tested as 0 or non-zero peak_time is clamped to 0..1 half_height is not clamped zero_wait is clamped to 0..1

Implementation

@ffi.Native<
  ffi.Void Function(
    ffi.Pointer<HexWave>,
    ffi.Int,
    ffi.Float,
    ffi.Float,
    ffi.Float,
  )
>()
external void hexwave_change(
  ffi.Pointer<HexWave> hex,
  int reflect,
  double peak_time,
  double half_height,
  double zero_wait,
);