Help with graphics function

  • Dawgie
    6th Aug 2012 Member 0 Permalink
    I understand how it works but how would i make it so it changes to a different set of colors based on say temp?
  • lorddeath
    6th Aug 2012 Member 0 Permalink

    I dont know sorry

  • Dawgie
    6th Aug 2012 Member 1 Permalink
    Then why did you post anything????
  • jacob1
    6th Aug 2012 Developer 0 Permalink

    graphics(i, colr, colg, colb)
    if tpt.get_property("temp",i) > sometemp
    return 0, values...
    elseif tpt.get_property("temp",i) < someothertemp
    return 0, values...
    end
    end


    Use this as a template, and change it to do what you want. Graphics functions pass in the i variable so you can get properties of the element, and returning 0 won't cache your return values, allowing the graphics to change (and also be a little laggy)