canvas_squares绘制正方形,西关窗户,R语言aRtsy包生成艺术 ![canvas_squares绘制正方形,西关窗户1.jpg](https://upload-images.jianshu.io/upload_images/19017018-3d0c227e0718ab07.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) ![canvas_squares绘制正方形,西关窗户2.jpg](https://upload-images.jianshu.io/upload_images/19017018-db2f132dd41b05f5.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) ![canvas_squares绘制正方形,西关窗户3.jpg](https://upload-images.jianshu.io/upload_images/19017018-dd410d1bb73cc5f8.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) ```R # Thu Sep 02 01:38:20 2021 edit # 字符编码:UTF-8 # R 版本:R 4.1.1 x64 for window 11 # [email protected] # 个人笔记不负责任,拎了个梨 #.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 -- ```