pax-example 0.10.7

Example and development app for the Pax monorepo and compiler
Documentation


//Camera
<Frame width=100% height=100% @click=handle_click >
    <Group transform={
        Transform2D::scale(zoom, zoom) *
        Transform2D::translate((pan_x)px, (pan_y)px)
    }>
        <Rectangle width=100px height=100px fill={Fill::Solid(Color::rgb(100.0, 0, 0))} transform={Transform2D::translate(0,0)} />
        <Rectangle width=100px height=100px fill={Fill::Solid(Color::rgb(0, 100.0, 0))} transform={Transform2D::translate(0,200)} />
        <Rectangle width=100px height=100px fill={Fill::Solid(Color::rgb(0, 0, 100.0))} transform={Transform2D::translate(200,0)} />
        <Ellipse width=100px height=100px fill={Color::rgb(0, 50.0, 50.0)} transform={Transform2D::translate(200,200)} />
    </Group>
</Frame>


@handlers {
    did_mount: handle_did_mount,
}