Get Button and Text working

This commit is contained in:
Richard Feldman 2022-02-21 20:21:53 -05:00
parent 56e3fc4169
commit 683b505e3a
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798
8 changed files with 215 additions and 23 deletions

View file

@ -330,6 +330,26 @@ pub fn render(title: RocStr) {
color: (0.4, 0.2, 0.5, 1.0),
border_width: 5.0,
border_color: (0.75, 0.5, 0.5, 1.0)
},
RectElt {
rect: Rect {
top_left_coords: (420.0, 420.0).into(),
width: 150.0,
height: 150.0
},
color: (0.9, 0.2, 0.5, 1.0),
border_width: 10.0,
border_color: (0.2, 0.5, 0.5, 1.0)
},
RectElt {
rect: Rect {
top_left_coords: (571.0, 420.0).into(),
width: 150.0,
height: 150.0
},
color: (0.2, 0.2, 0.5, 1.0),
border_width: 10.0,
border_color: (0.2, 0.5, 0.5, 1.0)
}
];