--- /dev/null
+# Initialize virtual environment
+# python3 -m venv .venv
+
+# Activate
+source .venv/bin/activate
+
+# Confirm it's activated. (Expect ending with .venv/bin/python)
+which python
+
+# Install dependencies (only if activation is confirmed)
+pip install opencv-python
+pip install pillow
+pip install numpy
+
+# Execute
+for i in `ls other/generate_rgb/*.jpg`; do python img2nef.py --src.hsl=1,1,1 --outputfilenamemethod=INPUTFILE --ifexists=OVERWRITE Z5II "$i"; done
+
+# Deactivate
+deactivate
--- /dev/null
+# Initialize virtual environment
+# python3 -m venv .venv
+
+# Activate
+source .venv/bin/activate
+
+# Confirm it's activated. (Expect ending with .venv/bin/python)
+which python
+
+# Install dependencies (only if activation is confirmed)
+pip install pillow
+
+# Execute
+python3 generate_rgb.py
+
+# Deactivate
+deactivate
--- /dev/null
+#!/usr/bin/env python3
+from PIL import Image
+
+# Image size
+width, height = 6064, 4040
+
+# (R, G, B)
+colors = {
+ "red": (255, 0, 0),
+ "green": (0, 255, 0),
+ "blue": (0, 0, 255),
+ "white": (255, 255, 255),
+ "black": (0, 0, 0)
+}
+
+for color in colors.keys():
+ # Create a new image
+ img = Image.new("RGB", (width, height), colors[color])
+ # Save as JPG
+ img.save("{color}.jpg".format(color = color), "JPEG", dpi=(300, 300))
+