Welcome to Urban Bench Designs! If a bench near you has an unusual slat pattern, support profile, or dedication plate, we would enjoy hearing about it. Walking notes and photo comparisons are welcome too, whether from a single street or a longer survey route.

Mars landscape color palette

  • Thread starter Thread starter RSS new | Urban Bench Designs — Historical Form
  • Start date Start date
R

RSS new | Urban Bench Designs — Historical Form

Guest

I came across this gorgeous image of Mars landscape and I was compelled to create a color palette. This image was captured by HiRISE (NASA) and processed by Seán Doran. I created this color scale with support from Chroma.js Color Palette Helper.

Image credit: HiRISE & Seán Doran


Code:
library(ggplot2)
library(hexbin)
library(cowplot)
library(chroma)

# color palettes
chroma::show_col(interp_colors(25, colors=c("#3a5251",  "#d5b087"), interp="bezier"))
chroma::show_col(interp_colors(25, colors=c("#19323b", "#d5b087"), interp="bezier"))
mars_green_ish.png
mars_blue_ish.png

Code:
# plot
green_ish <- ggplot(data.frame(x = rnorm(100000), y = rnorm(100000)), aes(x = x, y = y)) +
              geom_hex() + coord_fixed() + theme_void() +
              scale_fill_gradient(space = "Lab", 
                                  low = "#273e3d",
                                  high = "#d5b087")

blue_ish <- ggplot(data.frame(x = rnorm(100000), y = rnorm(100000)), aes(x = x, y = y)) +
              geom_hex() + coord_fixed() + theme_void() +
              scale_fill_gradient(space = "Lab", 
                                  low = "#19323b",
                                  high = "#d5b087") 

cowplot::plot_grid(green_ish, blue_ish)
mars-landscape-palette.png
Rafa Pereira​
 
Last edited:
Top