canvas_turmite画一幅泥灰岩,R语言aRtsy包生成

2021-09-28  本文已影响0人  youmigo

canvas_turmite画一幅泥灰岩,R语言aRtsy包生成艺术


canvas_turmite画一幅泥灰岩2.jpg
canvas_turmite画一幅泥灰岩1.jpg canvas_turmite画一幅泥灰岩4.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_turmite  #   画一幅泥灰岩。
set.seed(1)
canvas_turmite(color = "#000000", background = "#fafafa")
# Thu Sep 02 20:10:50 2021 --
set.seed(NULL)
canvas_turmite(color = '#FFCCCC'
               , background = '#FF99CC',
               p = 0.05,
               iterations = 100000, #  turmite的迭代次数。
               width = 150, height = 150)

ggplot2::ggsave(filename = 'canvas_turmite画一幅泥灰岩4.jpg')
# Thu Sep 02 01:51:50 2021 --

上一篇 下一篇

猜你喜欢

热点阅读