Use rgba8 as default rgba function - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/plot3d.lua
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年08月25日 16:49:17 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年08月25日 16:51:10 +0200
commit11561b1b2f367e38c7e0a89297341ac685d87272 (patch)
treea025cf05327699ebacdd9e1f90ccd68179031992 /plot3d.lua
parent5d21c4497e0335c6f7ae4c1986d5309d6749a87b (diff)
downloadgsl-shell-11561b1b2f367e38c7e0a89297341ac685d87272.tar.gz
Use rgba8 as default rgba function
Introduce also gamma correction in color composition.
Diffstat (limited to 'plot3d.lua')
-rw-r--r--plot3d.lua 6
1 files changed, 3 insertions, 3 deletions
diff --git a/plot3d.lua b/plot3d.lua
index 8e8756b2..0b45b9ba 100644
--- a/plot3d.lua
+++ b/plot3d.lua
@@ -25,9 +25,9 @@ local function render_shape(shape, plt, stroke)
renderer.draw_overdraw = true
renderer.draw_backfaces = true
- renderer.fill_rgba = rgb(0x4A/255, 0x92/255, 0xBF/255)
- renderer.fill_rgba_backside = rgb(0xBF/255, 0x92/255, 0x4A/255)
- if stroke then renderer.stroke_rgba = rgb(0.2, 0.2, 0.2) end
+ renderer.fill_rgba = rgb(0x4A, 0x92, 0xBF)
+ renderer.fill_rgba_backside = rgb(0xBF, 0x92, 0x4A)
+ if stroke then renderer.stroke_rgba = rgb(50, 50, 50) end
renderer.set_light_intensity = true
renderer.camera.focal_length = 30;
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月25日 02:49:33 +0000

AltStyle によって変換されたページ (->オリジナル) /