Skip to content

Commit

Permalink
Merge branch 'master' of github.com:davorg/svg-trafficlight
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Feb 4, 2022
2 parents 1694b16 + 71f3052 commit 89356a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/SVG/TrafficLight.pm
Expand Up @@ -280,9 +280,9 @@ Defines a sequence of traffic lights to display. This is an array reference.
Each element in the array is a hash reference which defines which of the
three lights are on or off.
The default sequence demonstates the full standard British traffic light
The default sequence demonstrates the full standard British traffic light
sequence of green, amber, red, red and amber, green. This can be changed
when creating the object. For example, here is how to reproduct the green,
when creating the object. For example, here is how to reproduce the green,
amber, red, green sequence that is used in many countries.
my $tl = SVG::TrafficLight->new({
Expand Down Expand Up @@ -359,12 +359,12 @@ The x co-ordinate of the top-left corner of the light set.
=item $y
The co-ordinate of the top left corner of the light set.
The y co-ordinate of the top left corner of the light set.
=item \%lights
A reference to a hash indicating which lights should be turned on or off.
The keys in the has should be the names of the lights in the light set (red,
The keys in the hash should be the names of the lights in the light set (red,
amber and green) and the associated values should be a 1 (to indicate that the
light is on) or a 0 (to indicate that the light is off).
Expand Down

0 comments on commit 89356a3

Please sign in to comment.