This repo contains a collection of demonstration projects for the Scenic framework for Elixir.
Fundamentals:
minimum_exampleis a completely stripped-down project that displays a single window with some text and no input.pubsubshows how to useScenic.PubSub.multiple_viewportsshoes how to create an app with multiple viewports.
Transforms:
transform_translateshows how translation transforms work.
Drawing:
primitivesshows the drawing primitives available for use with Scenic.textshows how to use different features of text support.spritesshows how to use the asset pipeline to render sprites.
Input:
input_keyboardshows how to handle keyboard input.input_mouseshows how to handle click input.input_mouse_statefulshows how to implement stateful mouse input (i.e., dragging, other interactions).input_viewportshows how to handle viewport input events.
contrib_menu_bardemos the MenuBar component
Drawing:
fill_basicshows how to use basic and gradient fills.fill_streamingshows how to use a streaming fill.fill_imageshows how to use an image fill from the asset pipeline.stroke_basicshows how to use basic and gradient strokes.stroke_streamingshows how to use a streaming stroke.stroke_imageshows how to use an image stroke from the asset pipeline.
Components:
component_slidershows how to use a slider component.component_radioshows how to use a radio component.component_textshows how to use a text component.component_passwordshows how to use a password component.component_dropdownshows how to use a dropdown component.component_buttonshows how to use a button component.component_checkboxshows how to use a checkbox component.component_toggleshows how to use a toggle component.
Transforms:
transform_rotationshows how rotation transforms work.transform_pinshows how pins work.transform_scaleshows how scale transforms work.
The applications in each example all share the same names (Example and `:example) so creating a new example is very easy:
cp -r minimum_example new_example_name`
