X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Color.html-inc;h=16932ed9874b73c0ea0bcfd1cb6b1ee31744e881;hb=d5943b684b1240307fbf0a103abbf18dd93998f4;hp=40d057ecd89223088067c9f1aae1a9e334b5506a;hpb=46beffd8f76fe150d946bf61c780e61de2affbdf;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Color.html-inc b/pages/SDL-Color.html-inc index 40d057e..16932ed 100644 --- a/pages/SDL-Color.html-inc +++ b/pages/SDL-Color.html-inc @@ -9,13 +9,14 @@
  • SYNOPSIS
  • DESCRIPTION
  • METHODS -
    @@ -32,14 +33,14 @@

    SYNOPSIS

    Top

    -
      my $black = SDL::Color->new( 0, 0, 0);
    -  my $color = SDL::Color->new(255, 0, 0);
    -  my $r = $color->r; # 255
    -  my $g = $color->g; # 0
    -  my $b = $color->b; # 0
    -  $color->g(255);
    -  $color->b(255);
    -  # $color is now white
    +
     my $black = SDL::Color->new(0, 0, 0);
    + my $color = SDL::Color->new(255, 0, 0);
    + my $r = $color->r; # 255
    + my $g = $color->g; # 0
    + my $b = $color->b; # 0
    + $color->g(255);
    + $color->b(255);
    + # $color is now white
     
     
    @@ -53,48 +54,56 @@
    -

    new ( $r, $g, $b )

    -
    -

    The constructor creates a new color with the specified red, green and -blue values:

    -
      my $color = SDL::Color->new(255, 0, 0);
    +

    new

    +
    +
     my $color = SDL::Color->new(255, 0, 0);
     
     
    +

    The constructor creates a new color with the specified red, green and blue values.

    r

    -

    If passed a value, this method sets the red component of the color; -if not, it returns the red component of the color:

    -
      my $r = $color->r; # 255
    -  $color->r(128);
    +
     my $r = $color->r;
    + $color->r(128);
     
     
    +

    If passed a value, this method sets the red component of the color; +if not, it returns the red component of the color.

    g

    -

    If passed a value, this method sets the green component of the color; -if not, it returns the green component of the color:

    -
      my $g = $color->g; # 255
    -  $color->g(128);
    +
     my $g = $color->g;
    + $color->g(128);
     
     
    +

    If passed a value, this method sets the green component of the color; +if not, it returns the green component of the color.

    b

    -

    If passed a value, this method sets the blue component of the color; -if not, it returns the blue component of the color:

    -
      my $b = $color->b; # 255
    -  $color->b(128);
    +
     my $b = $color->b;
    + $color->b(128);
     
     
    +

    If passed a value, this method sets the blue component of the color; +if not, it returns the blue component of the color.

    SEE ALSO

    Top

    +

    AUTHORS

    Top

    +
    +

    See AUTHORS in SDL.

    + + + +
    \ No newline at end of file