- 授权协议: MIT
- 开发语言: JavaScript HTML/CSS
- 操作系统: 跨平台
- 软件首页: https://github.com/hustcc/alimask
- 软件文档: https://github.com/hustcc/alimask
软件介绍
alimask
alimask 是一个使用 canvas 生成类似阿里巴巴内部网站水印图片的 JavaScript 库。Online demo here.
1. Install
npm install alimask
Then import it.
<script type="text/javascript" src="dist/alimask.min.js"></script>
// or
var alimask = require('alimask');
// or
import alimask from 'alimask';Then use alimask(text, options) API.
alimask('王小为(小为) 888888');
alimask('王小为(小为) 888888', { color: '#f6dcd7' });
alimask('小泥巴(小美) 888888', { alpha: 0.5 });2. API
The unique API is: alimask(text, options).
text (String): required, the text in the watermark image.
options (Object): optional, the options of watermark, with keys below:
width (Number): default is
250.height (Number): default is
80.color (String): the text color, default is
#ebebeb.alpha (Float): the text alpha(0 ~ 1), default is
0.8.font (String): the text font style, default is
10px Arial.
The api return the base64 string of watermark image which can be used in css background / img tag.
3. Build & Test
npm install
npm run build
npm test
大连接
[美] 尼古拉斯•克里斯塔基斯(Nicholas A. Christakis)、[美] 詹姆斯•富勒(James H. Fowler) / 简学 / 中国人民大学出版社 / 2013-1 / 59.90元
[内容简介] 1. 本书是继《六度分隔》之后,社会科学领域最重要的作品。作者发现:相距三度之内是强连接,强连接可以引发行为;相聚超过三度是弱连接,弱连接只能传递信息。 2. 本书讲述了社会网络是如何形成的以及对人类现实行为的影响,如对人类的情绪、亲密关系、健康、经济的运行和政治的影响等,并特别指出,三度影响力(即朋友的朋友的朋友也能影响到你)是社会化网络的强连接原则,决定着社会化网络的......一起来看看 《大连接》 这本书的介绍吧!
