Skip to content

Instantly share code, notes, and snippets.

View JMB-Scripts's full-sized avatar

JMB JMB-Scripts

  • UGA
  • Grenoble
  • 23:49 (UTC +01:00)
View GitHub Profile
@JMB-Scripts
JMB-Scripts / pymol_utils.py
Created October 27, 2025 18:02 — forked from rmrao/pymol_utils.py
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
@JMB-Scripts
JMB-Scripts / pymol_utils.py
Created October 27, 2025 18:02 — forked from rmrao/pymol_utils.py
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