home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / www / blittersoft / debug1.gif < prev    next >
Graphics Interchange Format  |  1977-12-31  |  19KB  |  554x550  |  4-bit (12 colors)
Labels: text | screenshot | display | software | parallel | computer icon | number | font | multimedia software | web page | line
OCR: 0 Actual Variables S FIH W Cast Screen * Low High Value Myscreen Screen * Window * 00X7cee510 -> {00x78f1d48, NULL, C Mywindow 00x7c9d8ac -> { 0000x307c9, 55062, 1 msg IntuiMessage * Gadget * 00x7cbdfdo -> { { ... }, 8, 0, 0, 00×7c73 colwheel 00X7800810 -> { 00x783df90, 0, 2676 gradslid Gadget * 00X7c92544 -> { 00x1e7f9a7, 9208, 4, colortable ULONG[96] mywinsig ULONG { 4294967295, 2147418112, 42949672 4294967295, Oxffffffff WORK: StormC/Examples/Colorwheel/ColorWheel.c ETSIO R Make text read-only. ×: 9 Y: 96 L: 265 DisplayInfoHandle displayhandle; struct DimensionInfo dimensioninfo; ULONG gdidres; ULONG exitvalue = RETURN_FAIL; 0 000000 00 1 if (IntuitionBase = OpenLibrary("intuition. library",39)> if (GfxBase = OpenLibrary("gra chios. (ibrary", 39) > if (ColorWheelBase = OpenLibrary( "gadgets/colorwheel. gadget",39L)> if (GradientSliderBase=OpenLibrary( "gadgets/gradients lider. gadget", 39L> > if (displayhandle = FindDisplayInfo(modeID> > if (gdidres=GetDisplayInfoData(displayhandle, (UBYTE #) &dimensioninfo, sizeof (struct DimensionInfo), DTAG_DIMS, NULL> > maxdepth = dimensioninfo. MaxDepth; Myscreen = OpenScreenTags ( NULL, SA_Depth_ SA_SharePens, maxdepth, SA_LikeHorkbench, TRUE, SA_Inter leaved, TRUE, SA_Title TRUE, TAG_DONE> ; "ColorWheel Screen", f (Myscreen) /* Get colors and set up gradient slider as color 0. * / '# get the RGB components of color 0 #/ 0000 IT GetRGB32(Myscreen->ViewPort . ColorMap, 0L, 32L, colortable> ; rgb. ow_Red = colortable[0]; rgb. ow_Green = colortable[1] ; rgb. ow_Blue = colortable[2] ; # now convert the RGB values to HSB, and max out B component #/ ConvertRGBTOHSB (&rgb, &hsb) ; hsb.ow_Brightness = Øxffffffff;