NEWS
cptcity 2.4.2
noaa_nws palette: rebuilt from the NWS logo colours -- brand dark
blue #003087, badge blue #1F4FA2, cloud pale #BFEAFB, white, and
logo red #CE0F3E. Bit-identical to the Python port
(pycptcity).
cptcity 2.4.1
noaa palette: rebuilt from the official NOAA brand colours --
dark blue #003087 (Pantone 287 C), light blue #0085CA (Pantone
Process Blue C), and white. Bit-identical to the Python port
(pycptcity).
cptcity 2.4.0
- 12 NOAA palettes: added
noaa_nws, noaa_nhc, noaa_nexrad,
noaa_goes, noaa_buoy, noaa_ncei, noaa_nmfs, noaa_jetstream,
noaa_tornado, noaa_wind_chill, noaa_heat_index, noaa_coastal --
covering NWS forecasting, NHC hurricanes (Saffir-Simpson), NEXRAD radar,
GOES satellites, NDBC buoys, NCEI climate, NMFS fisheries, the jet stream,
and NOAA hazard products. Palettes are bit-identical to the Python port
(pycptcity).
noaa palette: rebuilt from the NOAA emblem colours -- deep navy sea,
NOAA blue sky, light blue, pale blue, and the white gull. A simplified,
non-official emblem drawn in R and in Python ships in
man/figures/noaa_emblem_r.png and noaa_emblem_python.png.
- Total palettes: 7716 (up from 7704).
- Bug fix (
lucky()): the random-pick helper indexed sysdata positionally
with a hard-coded pool of 7140, which (a) ignored the newest palettes and
(b) could land on the internal cpt_names entry and crash. It now derives
the pool from the palette names and looks up by name.
- Bug fix (
find_cpt()): returned duplicated names (the internal names
vector held 8462 entries for 7704 palettes). It now searches the unique
palette names, so every result is directly usable in cpt().
- Data layout:
cpt_names is now stored as the last element of sysdata,
so positional access to sysdata[[i]] always yields a palette.
- Tests: added NOAA coverage (key-colour assertions for the emblem ramp,
NWS, NHC, NEXRAD, wind chill) and a regression test that
lucky() never
returns the internal names vector.
cptcity 2.3.0
- 215 country flag palettes: added
flag_* colour gradients covering UN member states and territories.
- Spider-Verse expanded: 25 additional Spider-Verse palettes including
spider_prowler, spider_spider_society, spider_miles_graffiti, and dimensions (63 Spider-Verse palettes in total).
- Curated collection: expanded curated palettes across cinema, music, space, anime, and art.
- inst/CITATION: updated to modern
bibentry() format for CRAN compliance.
- CRAN readiness: documentation encoding improvements and updated metadata.
cptcity 2.2.0
- 38 Spider-Verse palettes -- every dimension, hero, and villain:
Heroes:
spider_man, spider_miles_morales, spider_gwen,
spider_noir, spider_2099, spider_ham, spider_peni,
spider_punk, spider_pavitr, spider_scarlet, spider_superior,
spider_symbiote, spider_byte, spider_1602.
Villains: spider_spot, spider_green_goblin, spider_venom,
spider_doc_ock, spider_kingpin, spider_vulture, spider_mysterio,
spider_sandman, spider_lizard, spider_electro, spider_rhino,
spider_carnage.
Dimensions: spider_earth_1610 (Miles), spider_earth_65 (Gwen),
spider_earth_90214 (Noir), spider_earth_928 (2099),
spider_earth_50101 (Pavitr), spider_mumbattan, spider_nueva_york.
Effects: spider_glitch, spider_multiverse, spider_web,
spider_venom_symbiote, spider_silk.
- Total palettes: 7464 (7140 original + 324 curated).
- R >= 3.5.0 now required (serialized data format).
- Passes
R CMD check with zero errors, zero warnings, zero notes.
cptcity 2.1.0
- 138 new palettes in 13 categories:
Music (16), Anime (13), Cities (10), Mythology (8),
Scientific (10), Brazil (11), Films (11), Gemstones (10),
Weather (10), Comics (9), Food (10), Albums (10),
Photography (10).
- Total palettes: 7426 (7140 original + 286 curated).
- Music: jazz, blues, metal, punk, hip-hop, bossa nova, samba...
- Anime: Studio Ghibli, Evangelion, Cowboy Bebop, Dragon Ball...
- Cities: Tokyo neon, Rio, Paris, Marrakesh, Havana, Berlin...
- Brazil: Carnival, Amazon, Bossa Nova, Tropicalia, Niemeyer...
- Films: Star Wars, Jurassic Park, Inception, Pulp Fiction...
- Gems: Amethyst, Emerald, Ruby, Sapphire, Opal, Turquoise...
- Weather: Hurricane, Rainbow, Blizzard, Lightning, Twilight...
- Science: Thermal, X-Ray, DNA, MRI, Electromagnetic spectrum...
- Mythology: Norse, Greek, Egyptian, Aztec, Celtic, Hindu...
- Comics: Marvel, DC, Watchmen, Sin City, Hellboy, Tintin...
- Food: Coffee, Wine, Sushi, Matcha, Chocolate, BBQ...
- Albums: Dark Side of the Moon, Abbey Road, Nevermind...
- Photography: Kodachrome, Tri-X, Portra, Polaroid, Lomography...
cptcity 2.0.0
- 148 new colour palettes spanning 12 thematic categories:
Art Movements (15), Architecture (12), Decades (18), Books (14),
Cyberpunk (7), Space Agencies (14), Cinema (8), Video Games (18),
TV & Era (8), Historical Eras (9), Nature (14), Miscellaneous (11).
- Total palettes: 7288 (up from 7140).
- Palette highlights:
cyber_2077_night_city, space_nasa,
game_street_fighter_ryu, nature_aurora_borealis,
decade_1980s_synthwave, book_dune_arrakis, art_impressionism_monet,
arch_fallingwater_wright, tv_stranger_things.
- All new palettes prefixed by category (
art_, arch_, decade_, etc.)
for easy discovery with find_cpt().
- Generation script at
build_v2_palettes.R for reproducibility.
cptcity 1.1.1 (2024-12-02)
- URL: cpt-city archive moved from
soliton.vm.bytemark.co.uk to phillips.shef.ac.uk. All documentation updated.
cpt(): added error message for unknown palette names.
cpt(): improved documentation explaining colorRampPalette vs character-vector return -- sf users need colorRampPalette = TRUE.
find_cpt(): now case-insensitive by default (ignore.case = TRUE). Added fixed argument for literal (non-regex) matching.
lucky(): deduplicated internal runif call. Guards against out-of-range index.
show_cpt(): moved on.exit(par(oldpar)) to top of function. Cleaner grid layout logic and better margins.
- Tests: added tests for sf integration,
find_cpt case sensitivity, frgb scaling, unknown palette error, and colorRampPalette return type.
- Documentation: all
.R files re-documented with comprehensive roxygen2 entries.
cptcity 1.1.0
cptcity 1.0.5
- Add argument frgb to change internal rgb composition
cptcity 1.0.3 (2018-04-18)
- Add argument colorRampPalette to return this function
cptcity 1.0.2
cptcity 1.0.1
- Fix documentation
- Included lucky function!
cptcity 1.0.0 (2018-02-27)
- Incorporated 7140 colour gradients cpt-city_2.19-1 http://soliton.vm.bytemark.co.uk/pub/cpt-city/pkg/
- Only two gradients were not incorporated: http://soliton.vm.bytemark.co.uk/pub/cpt-city/gmt/tn/GMT_cyclic.png.index.html
http://soliton.vm.bytemark.co.uk/pub/cpt-city/jjg/hatch/tn/diag5.png.index.html
- Added the function find_cpt.
- Renamed the existing gradients to the new names, for instance, "inferno" is
now "mpl_inferno".
- Added a dataset with the names of the colour gradients.
cptcity 0.1.1
- Adding 4 gradients
- cptcity renamed as cpt which nows is a function
cptcity 0.1.0
- release including 4 gradients