canvas_squares绘制正方形,西关窗户,R语言aRtsy包生成艺术
canvas_squares绘制正方形,西关窗户1.jpg canvas_squares绘制正方形,西关窗户2.jpg canvas_squares绘制正方形,西关窗户3.jpg
# Thu Sep 02 01:38:20 2021 edit
# 字符编码:UTF-8
# R 版本:R 4.1.1 x64 for window 11
# cgh163email@163.com
# 个人笔记不负责任,拎了个梨🍐🍈
#.rs.restartR()
rm(list = ls());gc()
library(aRtsy)#gg生成艺术·
? canvas_squares # 绘制正方形。
set.seed(6)
canvas_squares(colors = colorPalette('tuscany1'))
# Thu Sep 02 20:10:50 2021 --
set.seed(NULL)
canvas_squares(
colors = rainbow(500), # 色卡
background = '#999933', # 边框色
cuts = 90,#要切割的数量。
ratio = 1.618, #切割比例
width = 100,
height = 100
)
ggplot2::ggsave(filename = 'canvas_squares绘制正方形,西关窗户3.jpg')
# Thu Sep 02 01:51:50 2021 --
网友评论