Scenic

v0.10.2

  • Pages
  • Modules
  • Exceptions
  • Mix Tasks
  • Scenic
    • Top
    • Summary
    • Functions
      • mix_env/0
      • version/0
  • Scenic.Components
    • Top
    • Summary
    • Functions
      • button/3
      • button_spec/2
      • checkbox/3
      • checkbox_spec/2
      • dropdown/3
      • dropdown_spec/2
      • radio_group/3
      • radio_group_spec/2
      • slider/3
      • slider_spec/2
      • text_field/3
      • text_field_spec/2
      • toggle/3
      • toggle_spec/2
  • Scenic.Graph
    • Top
    • Summary
    • Types
      • deferred/0
      • key/0
      • t/0
    • Functions
      • add/2
      • add/4
      • add_to/3
      • build/1
      • count/1
      • count/2
      • delete/2
      • find/2
      • get/2
      • get!/2
      • map/2
      • map/3
      • modify/3
      • reduce/3
      • reduce/4
  • Scenic.Primitives
    • Top
    • Summary
    • Functions
      • add_specs_to_graph/2
      • add_specs_to_graph/3
      • arc/3
      • arc_spec/2
      • circle/3
      • circle_spec/2
      • ellipse/3
      • ellipse_spec/2
      • group/3
      • group_spec/2
      • line/3
      • line_spec/2
      • path/3
      • path_spec/2
      • quad/3
      • quad_spec/2
      • rect/3
      • rect_spec/2
      • rectangle/3
      • rectangle_spec/2
      • rounded_rectangle/3
      • rounded_rectangle_spec/2
      • rrect/3
      • rrect_spec/2
      • scene_ref/3
      • scene_ref_spec/2
      • sector/3
      • sector_spec/2
      • text/3
      • text_spec/2
      • triangle/3
      • triangle_spec/2
      • update_opts/2
  • Scenic.Scene
    • Top
    • Summary
    • Types
      • response_opts/0
    • Functions
      • cast/2
      • cast_to_refs/2
      • handle_call/3
      • handle_cast/2
      • internal_push_graph/3
      • send_event/2
      • terminate/2
    • Callbacks
      • filter_event/3
      • handle_call/3
      • handle_cast/2
      • handle_continue/2
      • handle_info/2
      • handle_input/3
      • init/2
      • terminate/2
  • Scenic.ViewPort
    • Top
    • Summary
    • Types
      • event/0
    • Functions
      • capture_input/2
      • driver_cast/2
      • info/1
      • input/2
      • input/3
      • release_input/2
      • request_root/2
      • reset/1
      • reshape/2
      • set_root/3
      • start/1
      • stop/1
  • Components
  • Scenic.Component
    • Top
    • Summary
    • Callbacks
      • add_to_graph/3
      • info/1
      • verify/1
  • Scenic.Component.Button
    • Top
    • Summary
    • Functions
      • add_to_graph/3
  • Scenic.Component.Input.Caret
    • Top
    • Summary
    • Functions
      • add_to_graph/3
  • Scenic.Component.Input.Checkbox
    • Top
    • Summary
    • Functions
      • add_to_graph/3
  • Scenic.Component.Input.Dropdown
    • Top
    • Summary
    • Functions
      • add_to_graph/3
  • Scenic.Component.Input.RadioButton
    • Top
    • Summary
    • Functions
      • add_to_graph/3
  • Scenic.Component.Input.RadioGroup
    • Top
    • Summary
    • Functions
      • add_to_graph/3
  • Scenic.Component.Input.Slider
    • Top
    • Summary
    • Functions
      • add_to_graph/3
  • Scenic.Component.Input.TextField
    • Top
    • Summary
    • Functions
      • add_to_graph/3
  • Scenic.Component.Input.Toggle
    • Top
    • Summary
    • Functions
      • add_to_graph/3
  • Primitives
  • Scenic.Primitive
    • Top
    • Summary
    • Types
      • t/0
    • Functions
      • build/3
      • contains_point?/2
      • delete_style/2
      • delete_transform/2
      • do_put/2
      • get/1
      • get_style/3
      • get_styles/1
      • get_transform/3
      • get_transforms/1
      • merge_opts/2
      • put/3
      • put_style/3
      • put_styles/2
      • put_transform/3
      • put_transforms/2
    • Callbacks
      • add_to_graph/3
      • contains_point?/2
      • default_pin/1
      • expand/1
      • filter_styles/1
      • info/1
      • valid_styles/0
      • verify/1
  • Scenic.Primitive.Arc
    • Top
    • Summary
    • Functions
      • valid_styles/0
  • Scenic.Primitive.Circle
    • Top
    • Summary
    • Functions
      • valid_styles/0
  • Scenic.Primitive.Ellipse
    • Top
    • Summary
    • Functions
      • valid_styles/0
  • Scenic.Primitive.Group
    • Top
    • Summary
    • Functions
      • delete/2
      • increment/2
      • insert_at/3
      • valid_styles/0
  • Scenic.Primitive.Line
    • Top
    • Summary
    • Functions
      • centroid/1
      • valid_styles/0
  • Scenic.Primitive.Path
    • Top
    • Summary
    • Functions
      • valid_styles/0
  • Scenic.Primitive.Quad
    • Top
    • Summary
    • Functions
      • expand/2
      • valid_styles/0
  • Scenic.Primitive.Rectangle
    • Top
    • Summary
    • Functions
      • centroid/1
      • valid_styles/0
  • Scenic.Primitive.RoundedRectangle
    • Top
    • Summary
    • Functions
      • centroid/1
      • valid_styles/0
  • Scenic.Primitive.SceneRef
    • Top
    • Summary
    • Functions
      • valid_styles/0
  • Scenic.Primitive.Sector
    • Top
    • Summary
    • Functions
      • valid_styles/0
  • Scenic.Primitive.Text
    • Top
    • Summary
    • Functions
      • valid_styles/0
  • Scenic.Primitive.Triangle
    • Top
    • Summary
    • Functions
      • centroid/1
      • valid_styles/0
  • Styles
  • Scenic.Primitive.Style
    • Top
    • Summary
    • Callbacks
      • info/1
      • verify/1
  • Scenic.Primitive.Style.Cap
    • Top
  • Scenic.Primitive.Style.ClearColor
    • Top
  • Scenic.Primitive.Style.Fill
    • Top
  • Scenic.Primitive.Style.Font
    • Top
  • Scenic.Primitive.Style.FontBlur
    • Top
  • Scenic.Primitive.Style.FontSize
    • Top
  • Scenic.Primitive.Style.Hidden
    • Top
  • Scenic.Primitive.Style.Join
    • Top
  • Scenic.Primitive.Style.MiterLimit
    • Top
  • Scenic.Primitive.Style.Scissor
    • Top
  • Scenic.Primitive.Style.Stroke
    • Top
  • Scenic.Primitive.Style.TextAlign
    • Top
  • Scenic.Primitive.Style.TextHeight
    • Top
  • Scenic.Primitive.Style.Theme
    • Top
  • Style.Paint
  • Scenic.Primitive.Style.Paint
    • Top
  • Scenic.Primitive.Style.Paint.BoxGradient
    • Top
  • Scenic.Primitive.Style.Paint.Color
    • Top
    • Summary
    • Types
      • rgb/0
      • rgba/0
      • t/0
    • Functions
      • name_to_rgb/1
      • to_rgba/1
      • verify/1
  • Scenic.Primitive.Style.Paint.Dynamic
    • Top
  • Scenic.Primitive.Style.Paint.Image
    • Top
  • Scenic.Primitive.Style.Paint.LinearGradient
    • Top
  • Scenic.Primitive.Style.Paint.RadialGradient
    • Top
  • Transforms
  • Scenic.Primitive.Transform
    • Top
    • Summary
    • Functions
      • calculate_local/1
    • Callbacks
      • info/1
      • verify/1
  • Scenic.Primitive.Transform.Matrix
    • Top
  • Scenic.Primitive.Transform.Pin
    • Top
  • Scenic.Primitive.Transform.Rotate
    • Top
  • Scenic.Primitive.Transform.Scale
    • Top
  • Scenic.Primitive.Transform.Translate
    • Top
  • Math
  • Scenic.Math
    • Top
    • Summary
    • Types
      • line/0
      • matrix/0
      • matrix_list/0
      • point/0
      • quad/0
      • triangle/0
      • vector_2/0
  • Scenic.Math.Line
    • Top
    • Summary
    • Functions
      • intersection/2
      • parallel/2
      • round/1
      • trunc/1
  • Scenic.Math.Matrix
    • Top
    • Summary
    • Functions
      • add/2
      • adjugate/1
      • build_rotate_around/2
      • build_rotation/1
      • build_scale/1
      • build_translation/1
      • close?/3
      • determinant/1
      • div/2
      • get/3
      • get_xy/1
      • identity/0
      • invert/1
      • mul/1
      • mul/2
      • project_vector/2
      • project_vectors/2
      • put/4
      • rotate/2
      • scale/2
      • sub/2
      • translate/2
      • transpose/1
      • zero/0
  • Scenic.Math.Matrix.Utils
    • Top
    • Summary
    • Functions
      • to_binary/1
      • to_list/1
  • Scenic.Math.Vector2
    • Top
    • Summary
    • Functions
      • add/2
      • clamp/3
      • cross/2
      • distance/2
      • distance_squared/2
      • div/2
      • dot/2
      • down/0
      • in_bounds?/2
      • in_bounds?/3
      • invert/1
      • left/0
      • length/1
      • length_squared/1
      • lerp/3
      • max/2
      • min/2
      • mul/2
      • nlerp/3
      • normalize/1
      • one/0
      • project/2
      • right/0
      • round/1
      • sub/2
      • trunc/1
      • unity_x/0
      • unity_y/0
      • up/0
      • zero/0
  • ViewPort
  • Scenic.ViewPort.Config
    • Top
    • Summary
    • Types
      • t/0
    • Functions
      • valid!/1
      • valid?/1
  • Scenic.ViewPort.Input
    • Top
    • Summary
    • Types
      • class/0
      • t/0
    • Functions
      • handle_cast/2
  • Scenic.ViewPort.Tables
    • Top
    • Summary
    • Functions
      • child_spec/1
      • delete_graph/1
      • get_graph/1
      • get_graph_refs/1
      • get_refs/1
      • insert_graph/4
      • subscribe/2
      • unsubscribe/2
  • Drivers
  • Scenic.ViewPort.Driver
    • Top
    • Summary
    • Functions
      • child_spec/1
      • init/1
      • start/2
      • start_link/1
      • stop/1
    • Callbacks
      • handle_call/3
      • handle_cast/2
      • handle_info/2
      • init/3
  • Scenic.ViewPort.Driver.Config
    • Top
    • Summary
    • Functions
      • valid!/1
      • valid?/1
  • Scenic.ViewPort.Driver.Info
    • Top
  • Cache
  • Scenic.Cache.Base
    • Top
    • Summary
    • Types
      • hash/0
      • sub_types/0
    • Functions
      • child_spec/1
      • claim/3
      • claimed?/3
      • fetch/2
      • get/3
      • get!/2
      • keys/2
      • member?/2
      • put/4
      • release/3
      • status/3
      • subscribe/3
      • unsubscribe/3
    • Callbacks
      • load/3
      • load!/3
  • Scenic.Cache.Dynamic.Texture
    • Top
    • Summary
    • Functions
      • claim/2
      • claimed?/2
      • fetch/1
      • get/2
      • get!/1
      • keys/1
      • member?/1
      • put/3
      • put_new/3
      • release/2
      • status/2
      • subscribe/2
      • unsubscribe/2
  • Scenic.Cache.Hash
    • Top
    • Summary
    • Functions
      • binary/2
      • binary!/2
      • file/2
      • file!/2
      • verify/3
      • verify!/3
      • verify_file/3
      • verify_file!/3
  • Scenic.Cache.Static.Font
    • Top
    • Summary
    • Functions
      • claim/2
      • claimed?/2
      • fetch/1
      • get/2
      • get!/1
      • keys/1
      • load/3
      • load!/3
      • member?/1
      • put_new/3
      • release/2
      • status/2
      • subscribe/2
      • unsubscribe/2
  • Scenic.Cache.Static.FontMetrics
    • Top
    • Summary
    • Types
      • sys_fonts/0
    • Functions
      • claim/2
      • claimed?/2
      • fetch/1
      • get/2
      • get!/1
      • keys/1
      • load/3
      • load!/3
      • member?/1
      • put_new/3
      • release/2
      • status/2
      • subscribe/2
      • unsubscribe/2
  • Scenic.Cache.Static.Texture
    • Top
    • Summary
    • Functions
      • claim/2
      • claimed?/2
      • fetch/1
      • get/2
      • get!/1
      • keys/1
      • load/3
      • load!/3
      • member?/1
      • put_new/3
      • release/2
      • status/2
      • subscribe/2
      • unsubscribe/2
  • Scenic.Cache.Support.File
    • Top
    • Summary
    • Functions
      • read/3
      • read!/3
  • Scenic.Cache.Support.Hash
    • Top
    • Summary
    • Types
      • hash_type/0
    • Functions
      • binary/2
      • binary!/2
      • file/2
      • file!/2
      • verify/3
      • verify!/3
      • verify_file/3
      • verify_file!/3
  • Scenic.Cache.Support.Supervisor
    • Top
    • Summary
    • Functions
      • child_spec/1
      • start_link/0
  • Utilities
  • Scenic.Utilities.Texture
    • Top
    • Summary
    • Functions
      • build/4
      • build!/4
      • clear!/2
      • get/3
      • put!/4
      • to_rgba/1

Scenic v0.10.2 Scenic.Utilities.Texture View Source

Link to this section Summary

Functions

build(type, width, height, opts \\ [])
build!(type, width, height, opts \\ [])
clear!(texture, color \\ nil)
get(texture, x, y)
put!(texture, x, y, color)
to_rgba(texture)

Link to this section Functions

Link to this function

build(type, width, height, opts \\ []) View Source

Link to this function

build!(type, width, height, opts \\ []) View Source

Link to this function

clear!(texture, color \\ nil) View Source

Link to this function

get(texture, x, y) View Source

Link to this function

put!(texture, x, y, color) View Source

Link to this function

to_rgba(texture) View Source

Built using ExDoc (v0.19.3), designed by Friedel Ziegelmayer for the Elixir programming language.