【问题标题】:CorePlot CPT Color Apply Not All Color RGB ValuesCorePlot CPT 颜色应用并非所有颜色 RGB 值
【发布时间】:2012-04-07 23:15:13
【问题描述】:

我正在工作 Core plot BarChart Apply the Bars Colors with RGB doesn't work..!

它只适用于红色、绿色、蓝色、白色、紫色等主要颜色!

我正在尝试申请 Orange 不申请。任何人帮助我...!

[CPTColor colorWithComponentRed:255 green:163 blue:0 alpha:1]

它是橙色 RGB 颜色值。但是,只应用黄色......!

【问题讨论】:

    标签: ios core-plot rgb


    【解决方案1】:

    组件是从 0 到 1 的浮点数,这样做:

    [CPTColor colorWithComponentRed:255.0f/255.0f green:163.0f/255.0f blue:0.0f/255.0f alpha:1.0f]
    

    【讨论】:

    • 谢谢你,@Ell Neal!有帮助!
    猜你喜欢
    • 2013-04-10
    • 2012-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-04
    • 1970-01-01
    相关资源
    最近更新 更多