Fix examples/multitouch dividing by zero
This commit is contained in:
parent
295aae4faa
commit
a497d12320
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ impl canvas::Program<Message> for Multitouch {
|
|||
|
||||
let path = builder.build();
|
||||
|
||||
let color_r = (10 % zone.0) as f32 / 20.0;
|
||||
let color_r = (10 % (zone.0 + 1)) as f32 / 20.0;
|
||||
let color_g = (10 % (zone.0 + 8)) as f32 / 20.0;
|
||||
let color_b = (10 % (zone.0 + 3)) as f32 / 20.0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue