Jump to content

scoobie

Members
  • Posts

    460
  • Joined

  • Last visited

Community Answers

  1. scoobie's post in DCS World OpenBeta/Scripts/Common/utils.lua -> Error in 'makeColor' function? was marked as the answer   
    I'm not sure what you mean. They're just throwing each basic colour (values 0..255) onto its appropriate byte in a number (B lowest, G next, R highest), like this (apostrophes separate bytes for clarity, each character is a bit):

    RRRRRRRR'GGGGGGGG'BBBBBBBB

    However... this is not a normal language, but this Lua thing, so the little code can as well launch a space probe to the orbit or do laundry for aunt Helen, no one knows 😉
     
×
×
  • Create New...