Home

main

  • Host
    • blit!
    • blit_sub!
    • disk_read!
    • disk_write!
    • get_draw_colors!
    • get_gamepad!
    • get_mouse_buttons!
    • get_mouse_x!
    • get_mouse_y!
    • get_netplay!
    • get_palette_color!
    • get_pixel!
    • hline!
    • line!
    • oval!
    • rand!
    • rand_range_less_than!
    • rect!
    • seed_rand!
    • set_draw_colors!
    • set_hide_gamepad_overlay!
    • set_palette!
    • set_pixel!
    • set_preserve_frame_buffer!
    • text!
    • tone!
    • trace!
    • vline!
  • Sprite
    • new
    • blit!
    • sub
    • sub_or_crash
    • Flags
      • default
      • flip_x
      • flip_y
      • rotate
      • to_u32
    • SubRegion
  • W4
    • screen_width
    • screen_height
    • set_palette!
    • get_palette!
    • set_draw_colors!
    • get_draw_colors!
    • set_primary_color!
    • set_text_colors!
    • set_shape_colors!
    • text!
    • rect!
    • oval!
    • line!
    • hline!
    • vline!
    • get_gamepad!
    • get_mouse!
    • get_netplay!
    • seed_rand!
    • rand!
    • rand_between!
    • trace!
    • save_to_disk!
    • load_from_disk!
    • preserve_frame_buffer!
    • clear_frame_buffer_each_update!
    • hide_gamepad_overlay!
    • show_gamepad_overlay!
    • get_pixel!
    • set_pixel!
    • run_shader!
    • tone!
    • bit_is_set
    • convert_mode
    • to_color_flags
    • extract_color
    • from_color_flags
  • Host
  • Host.blit! : List(U8), I32, I32, U32, U32, U32 => {}
  • Host.blit_sub! : List(U8), I32, I32, U32, U32, U32, U32, U32, U32 => {}
  • Host.disk_read! : () => List(U8)
  • Host.disk_write! : List(U8) => Bool
  • Host.get_draw_colors! : () => U16
  • Host.get_gamepad! : U8 => U8
  • Host.get_mouse_buttons! : () => U8
  • Host.get_mouse_x! : () => I16
  • Host.get_mouse_y! : () => I16
  • Host.get_netplay! : () => U8
  • Host.get_palette_color! : U8 => U32
  • Host.get_pixel! : U8, U8 => U8
  • Host.hline! : I32, I32, U32 => {}
  • Host.line! : I32, I32, I32, I32 => {}
  • Host.oval! : I32, I32, U32, U32 => {}
  • Host.rand! : () => I32
  • Host.rand_range_less_than! : I32, I32 => I32
  • Host.rect! : I32, I32, U32, U32 => {}
  • Host.seed_rand! : U64 => {}
  • Host.set_draw_colors! : U16 => {}
  • Host.set_hide_gamepad_overlay! : Bool => {}
  • Host.set_palette! : U32, U32, U32, U32 => {}
  • Host.set_pixel! : U8, U8, U8 => {}
  • Host.set_preserve_frame_buffer! : Bool => {}
  • Host.text! : Str, I32, I32 => {}
  • Host.tone! : U32, U32, U16, U8 => {}
  • Host.trace! : Str => {}
  • Host.vline! : I32, I32, U32 => {}
  • Sprite
  • Sprite.new : { data : List(U8), bpp : [BPP1, BPP2], width : U32, height : U32 } -> Sprite
  • Sprite.blit! : Sprite, { x : I32, y : I32, flags : Flags } => {}
  • Sprite.sub : Sprite, SubRegion -> Try(Sprite, [OutOfBounds])
  • Sprite.sub_or_crash : Sprite, SubRegion -> Sprite
  • Sprite.Flags
  • Sprite.Flags.default : () -> Flags
  • Sprite.Flags.flip_x : Flags -> Flags
  • Sprite.Flags.flip_y : Flags -> Flags
  • Sprite.Flags.rotate : Flags -> Flags
  • Sprite.Flags.to_u32 : Flags -> U32
  • Sprite.SubRegion : { src_x : U32, src_y : U32, width : U32, height : U32 }
  • W4
  • W4.screen_width : () -> I32
  • W4.screen_height : () -> I32
  • W4.set_palette! : { color1 : U32, color2 : U32, color3 : U32, color4 : U32 } => {}
  • W4.get_palette! : () => { color1 : U32, color2 : U32, color3 : U32, color4 : U32 }
  • W4.set_draw_colors! : DrawColors => {}
  • W4.get_draw_colors! : () => DrawColors
  • W4.set_primary_color! : Palette => {}
  • W4.set_text_colors! : { fg : Palette, bg : Palette } => {}
  • W4.set_shape_colors! : { border : Palette, fill : Palette } => {}
  • W4.text! : Str, { x : I32, y : I32 } => {}
  • W4.rect! : { x : I32, y : I32, width : U32, height : U32 } => {}
  • W4.oval! : { x : I32, y : I32, width : U32, height : U32 } => {}
  • W4.line! : { x : I32, y : I32 }, { x : I32, y : I32 } => {}
  • W4.hline! : { x : I32, y : I32, len : U32 } => {}
  • W4.vline! : { x : I32, y : I32, len : U32 } => {}
  • W4.get_gamepad! : Player => Gamepad
  • W4.get_mouse! : () => Mouse
  • W4.get_netplay! : () => Netplay
  • W4.seed_rand! : U64 => {}
  • W4.rand! : () => I32
  • W4.rand_between! : { start : I32, before : I32 } => I32
  • W4.trace! : Str => {}
  • W4.save_to_disk! : List(U8) => Try({}, [SaveFailed])
  • W4.load_from_disk! : () => List(U8)
  • W4.preserve_frame_buffer! : () => {}
  • W4.clear_frame_buffer_each_update! : () => {}
  • W4.hide_gamepad_overlay! : () => {}
  • W4.show_gamepad_overlay! : () => {}
  • W4.get_pixel! : { x : U8, y : U8 } => Palette
  • W4.set_pixel! : { x : U8, y : U8 }, Palette => {}
  • W4.run_shader! : Shader => {}
  • W4.tone! : { start_freq : U16, end_freq : U16, channel : [Pulse1([Eighth, Quarter, Half, ThreeQuarters]), Pulse2([Eighth, Quarter, Half, ThreeQuarters]), Triangle, Noise], pan : [Center, Left, Right], sustain_time : U8, release_time : U8, decay_time : U8, attack_time : U8, volume : U8, peak_volume : U8 } => {}
  • W4.bit_is_set : U8, U8 -> Bool
  • W4.convert_mode : [Eighth, Quarter, Half, ThreeQuarters] -> U8
  • W4.to_color_flags : DrawColors -> U16
  • W4.extract_color : U8 -> Palette
  • W4.from_color_flags : U16 -> DrawColors

Made by people who like to make nice things.