Skip to content

Instantly share code, notes, and snippets.

View JMB-Scripts's full-sized avatar

JMB JMB-Scripts

  • UGA
  • Grenoble
  • 12:26 (UTC +01:00)
View GitHub Profile
@rmrao
rmrao / pymol_utils.py
Last active October 27, 2025 18:02
Pymol functions for creating low depth cartoony images and generating color palettes programmatically.
"""
To use these, open PyMOL separately and type:
run <path/to/this_file.py>
Alternatively, place the above command in your ~/.pymolrc file.
"""
import math