All Projects → nrennie → aRt

nrennie / aRt

Licence: other
R package to create generative art.

Programming Languages

r
7636 projects

Labels

Projects that are alternatives of or similar to aRt

parsons
Create parsons problems to teach programming in learnr tutorials
Stars: ✭ 20 (-45.95%)
Mutual labels:  r-package
sl3
💪 🤔 Modern Super Learning with Machine Learning Pipelines
Stars: ✭ 93 (+151.35%)
Mutual labels:  r-package
gendercoder
Creating R package to code free text gender responses
Stars: ✭ 48 (+29.73%)
Mutual labels:  r-package
tbltools
🗜🔢 Tools for Working with Tibbles
Stars: ✭ 34 (-8.11%)
Mutual labels:  r-package
bittrex
A R Client for the Bittrex Crypto-Currency Exchange
Stars: ✭ 26 (-29.73%)
Mutual labels:  r-package
dplyr.teradata
A Teradata Backend for dplyr
Stars: ✭ 16 (-56.76%)
Mutual labels:  r-package
geojson
GeoJSON classes for R
Stars: ✭ 32 (-13.51%)
Mutual labels:  r-package
cablecuttr
An R wrapper for CanIStream.It API
Stars: ✭ 17 (-54.05%)
Mutual labels:  r-package
NetBID
Data-driven Network-based Bayesian Inference of Drivers
Stars: ✭ 21 (-43.24%)
Mutual labels:  r-package
rtweet.download
{rtweet} helpers for automating large or time-consuming downloads
Stars: ✭ 24 (-35.14%)
Mutual labels:  r-package
worldfootballR
A wrapper for extracting world football (soccer) data from FBref, Transfermark, Understat and fotmob
Stars: ✭ 188 (+408.11%)
Mutual labels:  r-package
WeightedTreemaps
Create Voronoi and Sunburst Treemaps from Hierarchical data
Stars: ✭ 33 (-10.81%)
Mutual labels:  r-package
dataspice
🌶️ Create lightweight schema.org descriptions of your datasets
Stars: ✭ 151 (+308.11%)
Mutual labels:  r-package
ropenaq
⛔ ARCHIVED ⛔ Accesses Air Quality Data from the Open Data Platform OpenAQ
Stars: ✭ 69 (+86.49%)
Mutual labels:  r-package
travis
⛔ ARCHIVED ⛔ Set Up 'Travis' for Testing and Deployment
Stars: ✭ 61 (+64.86%)
Mutual labels:  r-package
middlechild
⛔ ARCHIVED ⛔ Tools to Intercept, Validate and Consume Web/Network Traffic
Stars: ✭ 15 (-59.46%)
Mutual labels:  r-package
polyglot
🎓Use the R Console as an interactive learning environment
Stars: ✭ 26 (-29.73%)
Mutual labels:  r-package
rprotobuf
R Interface to Protocol Buffers
Stars: ✭ 62 (+67.57%)
Mutual labels:  r-package
pkgkitten
Create simple packages which pass R CMD check
Stars: ✭ 31 (-16.22%)
Mutual labels:  r-package
GAlogger
Log R Events and R Usage to Google Analytics
Stars: ✭ 23 (-37.84%)
Mutual labels:  r-package

aRt

aRt is an R package to create generative art.

Installation

Install using:

devtools::install_github("nrennie/aRt")

or

remotes::install_github("nrennie/aRt")

Colour palettes

Some of the functions in the {aRt} package take names of colour palettes as arguments. These colour palettes come from external R packages, and the names of the palettes are not necessarily obvious. In future, these functions will likely change to allow any choice of colours, rather than restricting a user to a single package from which to choose palettes.

In the meantime, the following colour palette packages are used for the following functions:

  • {MetBrewer}

    • tiles(): col_palette is the name of a colour palette from {MetBrewer}
  • {rcartocolor}

    • attraction(): main_col is either a single colour or the name of a colour palette from {rcartocolor}
    • boxes(): col_palette is the name of a colour palette from {rcartocolor}
    • bubbles(): col_palette is the name of a colour palette from {rcartocolor}
    • circles(): col_palette is the name of a colour palette from {rcartocolor}
    • dots(): col_palette is the name of a colour palette from {rcartocolor}
    • fading(): col_palette is the name of a colour palette from {rcartocolor}
    • rectangles(): col_palette is the name of a colour palette from {rcartocolor}
    • stripes(): col_palette is the name of a colour palette from {rcartocolor}
  • {RColorBrewer}

    • connected(): col_palette is the name of a colour palette from {RColorBrewer}

Please use the documentation for these packages to find suitable colour palette names, or run the following code:

MetBrewer::display_all()
rcartocolor::display_carto_all()
RColorBrewer::display.brewer.all()

Functions

attraction

The attraction() function produces generative art based on strange attractors.

attraction(n=50000, a=-3, b=1, c=0.5, d=-1, main_col="black", bg_col="white")
attraction(n=50000, a=-6, b=1, c=0.5, d=-2, main_col="black", bg_col="white")
attraction(n=50000, a=-3, b=-2, c=1, d=-1, main_col="SunsetDark", bg_col="white")

blending

The blending() function produces generative art of many boxes.

blending(n = 100, down = "white", up = "black", s = 1234)
blending(n = 500, down = "white", up = "black", s = 1234)
blending(n = 100, down = "#ba1141", up = "#003366", s = 1234)

boxes

The boxes() function produces generative art of many boxes.

boxes(n=100, perc=0.1, col_palette="DarkMint", bg_col="black", s=1234)
boxes(n=20, perc=0.1, col_palette="DarkMint", bg_col="black", s=1234)
boxes(n=100, perc=0.5, col_palette="Magenta", bg_col="black", s=1234)

bricks

The bricks() function draws multiple rectangular polygons in rows.

bricks(n_y=20, colours=c("#9B1D20", "#3D2B3D", "#CBEFB6", "#635D5C"), bg_col="gray97")
bricks(n_y=200, colours=c("#9B1D20", "#3D2B3D", "#CBEFB6", "#635D5C"), bg_col="gray97")
bricks(n_y=20, colours=carto_pal(7, "Burg"), bg_col="gray97")

bubbles

The bubbles() function produces generative art using layered polar bar charts.

bubbles(num_circles = 20, main_col = "black", col_palette = "Bold", bg_col = "white", s = 1234)
bubbles(num_circles = 20, main_col = "lightgrey", col_palette = "Bold", bg_col = "white", s = 123)
bubbles(num_circles = 10, main_col = "white", col_palette = "Prism", bg_col = "black", s = 2022)

bullseye

The bullseye() function produces generative art using layered polar bar charts.

bullseye(main_col="black", bg_col="white", s=1234)
bullseye(main_col="white", bg_col="black", s=1234)
bullseye(main_col="black", bg_col="white", s=2021)

circles

The circles() function produces generative art using dendograms and circular graphs.

circles(n=100, smoothness=100, col_palette="Bold", line_col=NA, bg_col="black", s=1234)
circles(n=10, smoothness=100, col_palette="Bold", line_col=NA, bg_col="#e73f74", s=1234)
circles(n=2, smoothness=3, col_palette="Bold", line_col="black", bg_col="black", s=1234)

circular

The circular() function produces circular generative art produced by many random paths from the centre of the circle.

circular(n=2, main_col="black", bg_col="white", s=56)
circular(n=10, main_col="black", bg_col="white", s=56)
circular(n=100, main_col="black", bg_col="white", s=56)

connected

The connected() function produces generative art by connected points on a circle.

connected(n=100, n_geom=10, random=F, col_palette="RdPu", bg_col="#ae217e", s=1234)
connected(n=100, n_geom=10, random=T, col_palette="RdPu", bg_col="#ae217e", s=1234)
connected(n=250, n_geom=2, random=F, col_palette="RdPu", bg_col="#ae217e", s=1234)

crawling

The crawling() function produces generative art using dendograms and tree graphs.

crawling(n=50, edge_colour="black", node_size=1, node_colour="black", bg_col="white", s=1234)
crawling(n=250, edge_colour="black", node_size=1, node_colour="black", bg_col="white", s=1234)
crawling(n=1000, edge_colour="black", node_size=1, node_colour="black", bg_col="white", s=1234)

dots

The dots() function produces generative art using jittered points.

dots(n_x=50, n_y=100, jitter_size_width=0.5, jitter_size_height=0.5, col_palette = "Purp", bg_col="#63589f", s=1234)
dots(n_x=500, n_y=100, jitter_size_width=0.5, jitter_size_height=5, col_palette = "Purp", bg_col="#63589f", s=1234)
dots(n_x=50, n_y=100, jitter_size_width=0.05, jitter_size_height=50, col_palette = "Purp", bg_col="#63589f", s=1234)

fading

The fading() function produces generative art using voronoi tiles.

fading(n_layers=6, n_points=10, col_palette="SunsetDark", s=1234)
fading(n_layers=6, n_points=1, col_palette="Sunset", s=1234)
fading(n_layers=10, n_points=10, col_palette="SunsetDark", s=1234)

flow fields

The flow_fields() function produces generative art using particle traces. These functions are inspired by a blog post by Will Chase.

flow_fields(n = 10000, granualarity = 1000, x_freq = 1, y_freq = 1, alpha = 1, line_col = c("#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"), bg_col = "lightgrey", s = 1234)
flow_fields(n = 10000, granualarity = 1000, x_freq = 1, y_freq = 1, alpha = 0.3, line_col = "black", bg_col = "white", s = 1234)
flow_fields(n = 10000, granualarity = 1000, x_freq = 3, y_freq = 0.2, alpha = 1, line_col = c("#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"), bg_col = "lightgrey", s = 1234)

heart

The heart() function draws a heart from many overlapping lines.

heart(n=25, col_scheme="mono", bg_col="black", s=1234)
heart(n=100, col_scheme="mono", bg_col="black", s=1234)
heart(n=25, col_scheme="rainbow", bg_col="black", s=1234)

infinity

The infinity() function draws an infinity symbol from many overlapping lines.

infinity(n=25, col_scheme="mono", bg_col="black", s=1234)
infinity(n=100, col_scheme="mono", bg_col="black", s=1234)
infinity(n=25, col_scheme="rainbow", bg_col="black", s=1234)

polygons

The polygons() function draws multiple polygons.

polygons(n_x=12, n_y=18, gap_size=0.5, deg_jitter=0.1, colours=c("#9B1D20", "#3D2B3D", "#CBEFB6", "#635D5C"), rand = FALSE, bg_col="gray97")
polygons(n_x=6, n_y=9, gap_size=0.2, deg_jitter=0.1, colours=c("#9B1D20", "#3D2B3D", "#CBEFB6", "#635D5C"), rand = FALSE, bg_col="gray97")
polygons(n_x=12, n_y=18, gap_size=0.5, deg_jitter=0.5, colours=carto_pal(7, "Burg"), rand = FALSE, bg_col="gray97")

rectangles

The rectangles() function draws multiple rectangles.

rectangles(n = 100, max_height = 7, max_width = 5, size = 2, main_col = "lightgrey", col_palette = "Bold", bg_col = "white", s = 123)
rectangles(n = 10, max_height = 15, max_width = 15, size = 4, main_col = "lightgrey", col_palette = "Bold", bg_col = "white", s = 123)
rectangles(n = 100, max_height = 4, max_width = 6, size = 1, main_col = ggplot2::alpha("white", 0.5), col_palette = "Prism", bg_col = "black", s = 123)

shell

The shells() function produces generative art using sine and cosine waves.

shells(n = 4, alpha = 1, main_col = "black", bg_col = "white")
shells(n = 10, alpha = 1, main_col = "black", bg_col = "white")
shells(n = 6, alpha = 0.5, main_col = "#CC338B", bg_col = alpha("#CC338B", 0.2))

spirals

The spirals() function produces generative art consisting of dots arranged in a spiral.

spirals(perc=0.2, s=1234)
spirals(perc=0.5, s=1234)
spirals(perc=0.8, s=1234)

static

The static() function produces generative art reminiscent of the noise displayed on analog televisions when no transmission signal is received.

static(perc=0.01, n=500, s=1234)
static(perc=0.1, n=500, s=1234)
static(perc=0.3, n=500, s=1234)

stripes

The stripes() function produces generative art consisting of rows of vertical stripes.

stripes(perc=0, n=3, col_palette = "TealGrn", alpha = 1, s=1234)
stripes(perc=0.5, n=3, col_palette = "TealGrn", alpha = 1, s=1234)
stripes(perc=1, n=3, col_palette = "TealGrn", alpha = 1, s=1234)

sunbursts

The sunbursts() function produces generative art consisting of two-dimesional density plots.

sunbursts(n = 100, x_means = c(0, 10, 5), y_means = c(0, 7, 8), xy_var = 5, low = "#074050", high = "#d3f2a3", s = 1234)
sunbursts(n = 5, x_means = c(0, 1, 15), y_means = c(0, 2, 16), xy_var = 10, low = "#4e0550", high = "#facdfc", s = 1234)
sunbursts(n = 250, x_means = c(1, 2, 9, 50), y_means = c(3, 6, 8, -3), xy_var = 100, low = "white", high = "black", s = 1234)

tiles

The tiles() function produces generative art using square polygons.

tiles(n_x=12, n_y=12, col_palette="Veronese", num_colours=5, s=1234)
tiles(n_x=50, n_y=50, col_palette="Veronese", num_colours=6, s=1234)
tiles(n_x=12, n_y=12, col_palette="Pissaro", num_colours=5, s=1234)

vortex

The vortex() function produces circular vortex generative art produced by a line plot and polar coordinates.

vortex(n=25, start_val=90, col_scheme="mono", bg_col="black", s=1234)
vortex(n=100, start_val=90, col_scheme="mono", bg_col="black", s=1234)
vortex(n=25, start_val=90, col_scheme="rainbow", bg_col="black", s=1234)

waves

The waves() function produces generative art using sine and cosine waves.

waves(a=23, b=6, main_col="white", bg_col="black", s=2021)
waves(a=23, b=6, main_col="Prism", bg_col="#edad08", s=2021)
waves(a=6, b=23, main_col="black", bg_col="white", s=2021)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].