Skip to content

Commit

Permalink
Using sneak case variables name on Scenic.Script.draw_variable_rounde…
Browse files Browse the repository at this point in the history
…d_rectangle/8
  • Loading branch information
GPrimola committed Aug 4, 2023
1 parent 853baba commit f63d4e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/scenic/script.ex
Original file line number Diff line number Diff line change
Expand Up @@ -562,14 +562,14 @@ defmodule Scenic.Script do
fill_stroke_flags :: fill_stroke()
) :: ops :: t()
def draw_variable_rounded_rectangle(ops, width, height, r1, r2, r3, r4, flag) do
upperLeftRadius = smallest([r1, width / 2, height / 2])
upperRightRadius = smallest([r2, width / 2, height / 2])
lowerRightRadius = smallest([r3, width / 2, height / 2])
lowerLeftRadius = smallest([r4, width / 2, height / 2])
upper_left_radius = smallest([r1, width / 2, height / 2])
upper_right_radius = smallest([r2, width / 2, height / 2])
lower_right_radius = smallest([r3, width / 2, height / 2])
lower_left_radius = smallest([r4, width / 2, height / 2])

[
{:draw_rrectv,
{width, height, upperLeftRadius, upperRightRadius, lowerRightRadius, lowerLeftRadius, flag}}
{width, height, upper_left_radius, upper_right_radius, lower_right_radius, lower_left_radius, flag}}
| ops
]
end
Expand Down

0 comments on commit f63d4e4

Please sign in to comment.