Results 1 to 11 of 11

Thread: cm3 (98/99) coloured attributes

  1. #1

    Join Date
    17-06-12
    Posts
    432
    vCash
    500

    cm3 (98/99) coloured attributes

    .....
    Last edited by MarcoVanBast; 09-04-20 at 07:51 AM.

  2. #2

    Join Date
    17-06-12
    Posts
    432
    vCash
    500
    solved

  3. #3

    Join Date
    18-07-15
    Posts
    572
    vCash
    0
    [EDX*2+9660F6]

  4. #4

    Join Date
    17-06-12
    Posts
    432
    vCash
    500
    Nick

    yeah)

    now i need to understand how to convert RGB into 16 bit (2 bytes) colour

    e.g Pure red should be F800 not ff0000 (like usual hex colour)

    maybe someone know online converter? All converters i have using 3 bytes hex values

  5. #5

    Join Date
    17-06-12
    Posts
    432
    vCash
    500
    all i v found is that, need to try

    RRRRRGGGGGGBBBBB (most significant bit is leftmost)

    The formula (C-notation) to get a 16-bit color value from the red/green/blue parts is as follows:

    color_16_bit = (red << 11) + (green << 5) + blue

    where red and blue has a range of 031 and green has a range of 063, the maximum value for red/green/blue refers to 100% color intensity. Shifting red left by 11, shifting green left by 5 and adding the shifted red and green value and blue together delivers the 16-bit color value.

  6. #6

    Join Date
    17-06-12
    Posts
    432
    vCash
    500

  7. #7

    Join Date
    31-10-11
    Posts
    29,481
    vCash
    110
    Why do you keep going back to your original posts and soft-deleting them or deleting the text from it?

  8. #8

    Join Date
    17-06-12
    Posts
    432
    vCash
    500
    Quote Originally Posted by Mark View Post
    Why do you keep going back to your original posts and soft-deleting them or deleting the text from it?
    it was a huge post with lot of code, and zero usefull information

  9. #9

    Join Date
    17-06-12
    Posts
    432
    vCash
    500
    but i guess you right, wilnnot do it in future

  10. #10

    Join Date
    17-06-12
    Posts
    432
    vCash
    500
    cm3 fonts rather bad with original colours so i cahnged it a little, right now it is so


  11. The Following User Says Thank You to MarcoVanBast For This Useful Post:


  12. #11

    Join Date
    18-05-20
    Posts
    10
    vCash
    500
    Quote Originally Posted by MarcoVanBast View Post
    cm3 fonts rather bad with original colours so i cahnged it a little, right now it is so

    Hi Someone can explain me how and where to modify the color like red for notes greather or equal to 15, dark yellow for notes between 10 and 14 and light yellow for notes less than 10??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •