Macro | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 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-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version