Merge branch 'menu-tabs' into develop
This commit is contained in:
+2
-3
@@ -53,16 +53,15 @@ pub fn invader_write(id: Uuid) -> Result<Uuid, Error> {
|
||||
colours.push("none".to_string());
|
||||
|
||||
// add up to 100 for %
|
||||
// [3] is the transparent colour
|
||||
let weights = [
|
||||
5,
|
||||
5,
|
||||
65,
|
||||
25,
|
||||
25, // the transparent colour
|
||||
];
|
||||
let colour_dist = WeightedIndex::new(&weights)?;
|
||||
|
||||
write!(&mut svg, "<svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='-250 -250 1000 1000' width='500' height='500'><g>")?;
|
||||
write!(&mut svg, "<svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='-250 -250 1000 1000' width='375' height='375'><g>")?;
|
||||
for i in 0..50 {
|
||||
let x = (i % 5) * 50;
|
||||
let y = (i / 5) * 50;
|
||||
|
||||
Reference in New Issue
Block a user