nim random font color
1.0.0
用于UI/UX设计的随机策划字体和柔和的颜色,非设计师的设计,Poors Man Design。 NIM软件包。使用nodejs可以正常工作。
编译将HTML的时间模板吐出Bulma&Spectre Ready HTML 。还有1个按钮和1个锚模板标签,可以在单击时自动可容纳。我们使用Bulma&Specter CSS框架,因为它们是唯一不使用JavaScript的CSS框架,因为NIM在前端运行非常适合。有关更多信息
import random_font_color
echo Table ( " my table " )
< table class = " table is-bordered is-striped is-hoverable table-striped table-hover " > my table < / table > >>> import random_font_color
>>> echo get_random_handwriting_font ()
" Redressed "
>>> echo get_random_mono_font ()
" Inconsolata "
>>> echo get_random_display_font ()
" McLaren "
>>> echo get_random_sans_font ()
" Lato "
>>> echo get_random_serif_font ()
" Rasa "
>>> echo get_random_font ()
" Yellowtail "
>>> echo get_random_pastel_color ( " dark " )
(name: " darkgray " , hexa: " #a9a9a9 " , rgb: [ 169 , 169 , 169 ], rgb_percent: [ 66 , 66 , 66 ])
>>> echo get_random_pastel_color ( " light " )
(name: " lavenderblush " , hexa: " #fff0f5 " , rgb: [ 255 , 240 , 245 ], rgb_percent: [ 100 , 94 , 96 ])
>>> echo get_random_pastel_color ()
(name: " chocolate " , hexa: " #d2691e " , rgb: [ 210 , 105 , 30 ], rgb_percent: [ 82 , 41 , 11 ])
echo get_random_css_pattern ()
"""
background:
linear-gradient(transparent,transparent 10px,#fff 10px, gray 14px,#fff 15px,rgba(0, 0, 0, 0) 14px,rgba(0, 0, 0, 0)),
linear-gradient(135deg,transparent,transparent 12px,#fff 12px,#000 15px, transparent 15px,transparent),
radial-gradient(10px 10px,circle,#FFF 7px,transparent 9px);
background-size: 35px 30px,4px 30px,20px 30px;
background-position: 0px 8px,31px 35px,25px 10px;
background-color: #87cefa;
background-repeat: repeat-y;
"""
>>> node random_font_color . js
( name : "forestgreen" , hexa : "#228b22" , rgb : [ 34 , 139 , 34 ] , rgb_percent : [ 13 , 54 , 13 ] )
( name : "mintcream" , hexa : "#f5fffa" , rgb : [ 245 , 255 , 250 ] , rgb_percent : [ 96 , 100 , 98 ] )
( name : "darkslategray" , hexa : "#2f4f4f" , rgb : [ 47 , 79 , 79 ] , rgb_percent : [ 18 , 30 , 30 ] )nim js -d:nodejs random_font_color.nim编译。 nimble install random_font_color
描述:获取随机char深色或浅色作为字符串,可用于CSS string 。
参数:
tone一个"dark"或"light" ,深色的深色和浅色的浅色, string类型,可选。返回: tuple类型。
proc都无法采取任何争论,只需直接使用它们即可。描述:获取带有柔和颜色作为字符串的随机无缝CSS3图案。快速HTML样式。这种模式已经在HTML/CSS上进行了测试,它们在所有组合中看起来都很好,我们不是设计师,但这对于快速模板和锅炉样式很有用。来自lea.verou.me/css3patterns and bennettfeely.com/gradients and My自己。
参数:无。
返回: 1个随机无缝的CSS3模式,带有柔和的颜色, string类型。