我可以将两个UIColor混合在一起吗? [英] Can I mix two UIColor together?

查看:80
本文介绍了我可以将两个UIColor混合在一起吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的colorA是[UIColor blueColor],而colorB是[UIColor redColor].我可以渲染[UIColor purple]吗?如何实施?谢谢.

I have colorA which is [UIColor blueColor], and colorB, which is [UIColor redColor]. Is this possible for me to render a [UIColor purple]? How can it be implemented? Thanks.

推荐答案

您不能像在问题中提到的那样直接混合两种UIColor.无论如何,有一个使用其他方案混合两种颜色的示例.相同的链接如下:

You can't mix two UIColors directly as you mention in your question. Anyways there is an example to mix two colors using other schemes. The link for same is as follows:

在此处链接

这篇关于我可以将两个UIColor混合在一起吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆