Siri chat bubble color's in iOS

别来无恙 提交于 2019-12-03 21:14:04

The fill color is mostly likley white with an opacity of about 10%. So the original background (a fabric like pattern) shines through and becomes slightly brighter. The border color is white as well, but with an opacity of about 30%.

In addition, there's slight shadow at the right and at the bottom of the border.

For the colors, you approximately need:

CGContextSaveGState(context);
CGContextSetShadow(context, CGSizeMake(-15f, -20f), 1.0f);
CGContextSetLineWidth(context, 2.0f);
CGContextSetRGBFillColor(context, 1.0f, 1.0f, 1.0f, 0.1f);
CGContextFillPath(context);
CGContextRestoreGState(context);

CGContextSetRGBStrokeColor(context, 1.0f, 1.0f, 1.0f, 0.3f);
CGContextStrokePath(context);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!