码迷,mamicode.com
首页 >  
搜索关键字:colors    ( 1060个结果
颜色渐变的效果如何实现
有一个CAGradientLayer的层,可以设置初始和终点颜色值,初始和终点位置,根据这个来完成颜色效果的设置。CAGradientLayer*gra=[[CAGradientLayeralloc]init];gra.frame=CGRectMake(0,0,SCREEN_WIDTH,64);gra.colors=@[(id)UIColorFromRGB(0xff6b00).CGColor,(id)UIColorFromRG..
分类:其他好文   时间:2015-08-25 17:01:30    阅读次数:146
PAT 1045. Favorite Color Stripe (30)
1045. Favorite Color Stripe (30)Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in her ...
分类:其他好文   时间:2015-08-21 23:02:21    阅读次数:221
Android studio相关设置及实现存在于工程目录中的视频播放
一:相关设置1:主题设置File-->Settings-->Appearance &Behavior-->Appearance-->THeme2:Java源码的颜色、字体设置字体:File-->Settings-->Editor-->Colors&Fonts-->Font注意:修改之前先Save a...
分类:移动开发   时间:2015-08-20 12:43:45    阅读次数:166
zoj 1610 Count the Colors 【区间覆盖 求染色段】
Count the Colors Time Limit: 2 Seconds      Memory Limit: 65536 KB Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones. Your...
分类:其他好文   时间:2015-08-20 01:31:58    阅读次数:142
挺不错的一个zsh配置
自己在网上找到的一个zsh配置,感觉还不错。 主目录下.zshrc文件中添加 #color{{{ autoload?colors colors ? for?color?in?RED?GREEN?YELLOW?BLUE?MAGENTA?CYAN?WHITE;?do eval?_$color=‘%{$terminf...
分类:其他好文   时间:2015-08-19 17:59:37    阅读次数:130
我的vim插件
a.vimclang_completeeregex.vimfcitx.vimneocomplete.vimneosnippet-snippetsneosnippet.vimnerdtreepyclewnsyntasticvim-airlinevim-autoformatvim-colors-sola...
分类:系统相关   时间:2015-08-18 18:52:43    阅读次数:132
Cf 444C DZY Loves Colors(段树)
DZY loves colors, and he enjoys painting.On a colorful day, DZY gets a colorful ribbon, which consists ofnunits (they are numbered from1tonfrom left t...
分类:其他好文   时间:2015-08-18 13:54:40    阅读次数:210
ZOJ 1610 Count the Colors
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1610 Count the Colors Time Limit: 2 Seconds Memory Limit: 65536 KB Painting some colored segments on a line, some previousl...
分类:其他好文   时间:2015-08-18 12:05:58    阅读次数:126
使用Win2D在UWP程序中2D绘图(二)
绘制API 首先还是看一下前文的的示例: args.DrawingSession.DrawEllipse(155, 115, 80, 30, Colors.Black, 3);args.DrawingSession.DrawText("Hello, world!", 100, 100, Colors...
分类:Windows程序   时间:2015-08-17 23:15:49    阅读次数:665
线段树专题—ZOJ1610 Count the Colors
题意:给一个n,代表n次操作,接下来每次操作表示把[l,r]区间的线段涂成k的颜色其中,l,r,k的范围都是0到8000 分析:其实就是拿线段树维护一段区间的颜色,总体用到的是线段树的区间更新把,但是会给人一种区间合并的错觉 注意:这题比较坑的是千万不能拿n建树,不然就会segmentation fault,必须拿8000建树,也就是树是固定的 代码: #inclu...
分类:其他好文   时间:2015-08-17 17:26:14    阅读次数:137
1060条   上一页 1 ... 61 62 63 64 65 ... 106 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!