// // time: Wed Apr 24 07:50:02 1996 // // version: 3.0.0 (format), 3.1.0 (DX) // // // Begin MDF // MODULE ConvertColorNameList // CATEGORY Macros // DESCRIPTION converts a list of string color names to a list of rgb values // INPUT colorname; object; "red"; name of color to convert to rgb // OUTPUT output_1; value list or string list; // End MDF // // comment: This macro takes as input a list of colorname strings (such as "red", "linen", "cyan", "light goldenrod", etc.) and converts it to a list of rgb vectors. // comment: (C) COPYRIGHT International Business Machines Corp. 1996. // comment: All Rights Reserved. // comment: Licensed Materials - Property of IBM // comment: // comment: Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of IBM not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. // comment: // comment: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THE SOFTWARE, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IBM DOES NOT WARRANT AGAINST THE INFRINGMENT OF PATENTS, COPYRIGHT OR ANY OTHER INTELLECTUAL PROPERTY RIGHTS OF OTHERS. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, IS WITH YOU. // comment: // workspace: width = 436, height = 481 // layout: snap = 0, width = 50, height = 50, align = NN // macro ConvertColorNameList( colorname = "red" ) -> ( output_1 ) { // // node First[1]: x = 397, y = 70, inputs = 0, label = First // ConvertColorNameList_First_1_out_1 = First( ) [instance: 1, cache: 1]; // // node Get[1]: x = 345, y = 215, inputs = 3, label = Get // ConvertColorNameList_Get_1_out_1, ConvertColorNameList_Get_1_out_2 = Get( NULL, ConvertColorNameList_First_1_out_1, NULL ) [instance: 1, cache: 1]; // // node Construct[1]: x = 23, y = 106, inputs = 4, label = Construct // input[1]: defaulting = 0, visible = 1, type = 16777224, value = {[0 0 0]} // input[3]: defaulting = 0, visible = 1, type = 1, value = 1 // ConvertColorNameList_Construct_1_out_1 = Construct( {[0 0 0]}, NULL, 1, NULL ) [instance: 1, cache: 1]; // // node Input[1]: x = 237, y = 4, inputs = 0, label = Input // parameter: position = 1, name = 'colorname', value = '"red"', descriptive = 0, description = 'name of color to convert to rgb', required = 0, visible = 1 // ConvertColorNameList_Input_1_out_1 = colorname; // // node ForEachMember[1]: x = 216, y = 73, inputs = 1, label = ForEachMember // ConvertColorNameList_ForEachMember_1_out_1, ConvertColorNameList_ForEachMember_1_out_2, ConvertColorNameList_ForEachMember_1_out_3 = ForEachMember( ConvertColorNameList_Input_1_out_1 ) [instance: 1, cache: 1]; // // node Color[1]: x = 140, y = 158, inputs = 5, label = Color // ConvertColorNameList_Color_1_out_1 = Color( ConvertColorNameList_Construct_1_out_1, ConvertColorNameList_ForEachMember_1_out_1, NULL, NULL, NULL ) [instance: 1, cache: 1]; // // node Extract[1]: x = 151, y = 256, inputs = 2, label = Extract // input[2]: defaulting = 0, visible = 1, type = 32, value = "colors" // ConvertColorNameList_Extract_1_out_1 = Extract( ConvertColorNameList_Color_1_out_1, "colors" ) [instance: 1, cache: 1]; // // node List[1]: x = 201, y = 334, inputs = 2, label = List // ConvertColorNameList_List_1_out_1 = List( ConvertColorNameList_Get_1_out_1, ConvertColorNameList_Extract_1_out_1 ) [instance: 1, cache: 1]; // // node Set[1]: x = 375, y = 359, inputs = 3, label = Set // Set( ConvertColorNameList_List_1_out_1, ConvertColorNameList_Get_1_out_2, NULL ) [instance: 1, cache: 1]; // // node Output[1]: x = 243, y = 418, inputs = 1, label = Output // parameter: position = 1, name = 'output_1', value = ' ', descriptive = 0, description = ' ', required = 0, visible = 1 // output_1 = ConvertColorNameList_List_1_out_1; // network: end of macro body } ConvertColorNameList_First_1_out_1 = NULL; ConvertColorNameList_Get_1_out_1 = NULL; ConvertColorNameList_Get_1_out_2 = NULL; ConvertColorNameList_Construct_1_out_1 = NULL; ConvertColorNameList_Input_1_out_1 = NULL; ConvertColorNameList_ForEachMember_1_out_1 = NULL; ConvertColorNameList_Color_1_out_1 = NULL; ConvertColorNameList_Extract_1_out_1 = NULL; ConvertColorNameList_List_1_out_1 = NULL;