Macro | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## with-rgb

Arguments: (rgb-variable) &body body

Executes body with rgb-variable bound to a temporarily allocated RGB object. This allows using an RGB without consing one that would need to be garbage collected.

Typically the body code would initialize the RGB object by calling make-rgb, passing rgb-variable as the value of the scratch-rgb argument along with the desired red, green, and blue values. Alternately it could be initialized by calling (setf rgb-red), (setf rgb-green), and (setf rgb-blue).

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version