{"size": 1798, "ext": "scrbl", "max_stars_repo_path": "gui-doc/scribblings/gui/add-color-intf.scrbl", "max_stars_repo_name": "alex-hhh/gui", "max_stars_repo_stars_event_min_datetime": "2018-07-29T04:13:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-14T16:11:17.000Z", "max_issues_repo_path": "gui-doc/scribblings/gui/add-color-intf.scrbl", "max_issues_repo_name": "alex-hhh/gui", "max_issues_repo_issues_event_min_datetime": "2017-08-25T20:26:37.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T17:48:40.000Z", "max_forks_repo_path": "gui-doc/scribblings/gui/add-color-intf.scrbl", "max_forks_repo_name": "alex-hhh/gui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 10, "max_issues_count": 15, "max_forks_count": null, "avg_line_length": 28.5396825397, "max_line_length": 87, "alphanum_fraction": 0.6434927697}
#lang scribble/doc
@(require "common.rkt")

@definterface/title[add-color<%> ()]{

An @racket[add-color<%>] object is used to additively change the RGB values of
a @racket[color%] object. An @racket[add-color<%>] object only exists within a
@racket[style-delta%] object.

See also @method[style-delta% get-foreground-add] and @method[style-delta%
get-background-add].

@defmethod[(get [r (box/c (integer-in -1000 1000))]
                [g (box/c (integer-in -1000 1000))]
                [b (box/c (integer-in -1000 1000))])
           void?]{
  Gets all of the additive values.

  @boxisfill[@racket[r] @elem{the additive value for the red component of the color}]
  @boxisfill[@racket[g] @elem{the additive value for the green component of the color}]
  @boxisfill[@racket[b] @elem{the additive value for the blue component of the color}]
}

@defmethod[(get-b)
           (integer-in -1000 1000)]{
  Gets the additive value for the blue component of the color.
}

@defmethod[(get-g)
           (integer-in -1000 1000)]{

Gets the additive value for the green component of the color.

}

@defmethod[(get-r)
           (integer-in -1000 1000)]{
  Gets the additive value for the red component of the color.
}

@defmethod[(set [r (integer-in -1000 1000)]
                [g (integer-in -1000 1000)]
                [b (integer-in -1000 1000)])
           void?]{
  Sets all of the additive values.
}

@defmethod[(set-b [v (integer-in -1000 1000)])
           void?]{
  Sets the additive value for the blue component of the color.
}

@defmethod[(set-g [v (integer-in -1000 1000)])
           void?]{
  Sets the additive value for the green component of the color.
}

@defmethod[(set-r [v (integer-in -1000 1000)])
           void?]{
  Sets the additive value for the red component of the color.
}}

