![]() */ say 'screen location ('r ","c ') color is:' color /*display color of char at row, column. */ if hue = '0F'x then color = 'white' /*or bright, brite white. */ if hue = '0E'x then color = 'yellow' /*or bright yellow. This is because the moment I run the function app.exec (), Qt will continuously run an event loop thus blocking the. ![]() Therefore, I had to run the QT app in a secondary thread. My solution assumes that Qt is only used to display the images in full-screen and not for the remaining logic. */ if hue = '0D'x then color = 'magenta' /*or bright magenta, pink, brite pink. The code below is one possible solution to my question. */ if hue = '0B'x then color = 'turquoise' /*or bright turquoise, cyan, britecyan.*/ if hue = '0C'x then color = 'red' /*or bright red. */ if hue = '0A'x then color = 'green' /*or bright green. */ if hue = '09'x then color = 'blue' /*or bright blue. */ if hue = '08'x then color = 'gray' /*or grey, gray, dark white. */ if hue = '07'x then color = 'gray' /*or grey, gray, dark white. */ if hue = '06'x then color = 'orange' /*or dark yellow, orage, brown. */ if hue = '05'x then color = 'darkmagenta' /*or dark pink. ![]() */ if hue = '04'x then color = 'darkred' /*or maroon. */ if hue = '01'x then color = 'darkblue' if hue = '02'x then color = 'darkgreen' if hue = '03'x then color = 'darkturquoise' /*or dark cyan. */ if hue = '00'x then color = 'black' /*or dark grey, dark gray. If PBAny was specified as the Image parameter then the auto-generated number is returned on success. Parameters Return value Returns nonzero if the image was loaded successfully and zero if the image could not be loaded. Hue =scrRead (r, c, 1, 'A' ) /*get color of the cursor's location. CatchImage CatchImage () Result (Image, MemoryAddress, Size) Load the specified image from the given memory area. *REXX program obtains the cursor position (within it's window) and displays it's color.*/ parse value cursor () with r c. Are you looking for a method to earn free Bingo Blitz credits You may use. The REXX program converts the hexadecimal attribute of the character at the location of the cursor to a familiar name of a color. As you meet new friends across the globe, youll see theres no need for a. This REXX version uses the position of the cursor. PieChartScreen.pb Icons CreateIcons1.pb CreateIcons2.pb IconCreator.pb Image ASCIIPicGenerator.pb Autostereograph.pb BMP2Data.pb CatchImageEx.pb CatchImageExample.pb CatchTransparentImage.pb ChangeImageColorChannel.pb ChangeColorDepth.pb ClipboardImageGetDimensions.pb CopyImageToMem&CopyMemToImage.pb Create24BitBitmap. In BBC BASIC for Windows you can read either the 'logical colour' (palette index) or the 'true colour' (24-bit RGB value).ĥ rem commodore 64 example 10 base = 2 * 4096 : x = 100 : y = 50 : poke53280, 0 20 gosub 1000 : print chr$ ( 147 ) 30 bg = 11 : fg = 1 : rem set foreground and background colors 40 for i = 1024 to 1503 : poke i, fg * 16 + bg: next 50 for i = base to base + 7990 : poke i, 0 : next 60 gosub 1200 70 poke byte, peek ( byte ) or 2 ^ bit 80 print " -depth 8 txt:-/. 210 IF NOT ((PL = PR) AND (PL P)) THEN C = C + P * 3: RETURN
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |