RSS/Atom feed Twitter
Site is read-only, email is disabled

Question on linear and radial gradient

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Question on linear and radial gradient Forsale Zhangjiang 01 Mar 12:10
  Question on linear and radial gradient David Gowers (kampu) 01 Mar 12:53
Forsale Zhangjiang
2012-03-01 12:10:32 UTC (almost 13 years ago)

Question on linear and radial gradient

---
- ! 'Hello experts,

I am confused by the calls -gimp_linear_gradient and -gimp_radial_gradient used in GIMC. My question is, what are their functions respectively? And what is the function of each of their argument? It will be super cool if you can help point out a tutorial on this.

Many thanks in advance!'

David Gowers (kampu)
2012-03-01 12:53:33 UTC (almost 13 years ago)

Question on linear and radial gradient

---
- ! "On Thu, Mar 1, 2012 at 10:40 PM, Forsale Zhangjiang\r\n wrote:\r\n> Hello experts,\r\n>\r\n> I am confused by the calls-gimp_linear_gradient and -gimp_radial_gradient\r\n> used in GIMC. My question is, what are their functions respectively?\r\n\r\nYou'll have to ask the author of G'MIC -- those are functions defined\r\nin GMIC, not GIMP.\r\nIf I look in ~/.gmic_def.1500, i can find the following code:\r\n\r\n#@gimp Linear gradient : gimp_linear_gradient, gimp_linear_gradient\r\n#@gimp : Starting color = color(0,0,0,255)\r\n#@gimp : Ending color = color(255,255,255,255)\r\n#@gimp : Swap colors = bool(0)\r\n#@gimp : Angle = float(45,0,360)\r\n#@gimp : Fade start = float(0,0,100)\r\n#@gimp : Fade end = float(100,0,100)\r\n#@gimp : sep = separator(), note = note(\"Author : David\r\nTschumperlé. Latest update :\r\n2010/12/29.\")\r\ngimp_linear_gradient :\r\n -repeat @#\r\n \ ({w},{h}) -rm[-2]\r\n ($1^$2^$3^$4) ($5^$6^$7^$8)\r\n -if $9 -rv[-2,-1] -endif\r\n -r[-2,-1] @-3 -rm[-3]\r\n -fade_linear $10,$11,$12\r\n -mv[-1] 0 -done\r\n\r\n#@gimp Radial gradient : gimp_radial_gradient, gimp_radial_gradient\r\n#@gimp : Starting color = color(0,0,0,255)\r\n#@gimp : Ending color = color(255,255,255,255)\r\n#@gimp : Swap colors = bool(0)\r\n#@gimp : Fade start = float(0,0,100)\r\n#@gimp : Fade end = float(100,0,100)\r\n#@gimp : X-center = float(50,0,100)\r\n#@gimp : Y-center = float(50,0,100)\r\n#@gimp : sep = separator(), note = note(\"Author : David\r\nTschumperlé. \ Latest update :\r\n2010/12/29.\")\r\ngimp_radial_gradient :\r\n \ -repeat @#\r\n ({w},{h}) -rm[-2]\r\n ($1^$2^$3^$4) ($5^$6^$7^$8)\r\n -if $9 -rv[-2,-1] -endif\r\n -r[-2,-1] @-3 -rm[-3]\r\n 100%,100% -=[-1] 1,$12%,$13% -distance[-1] 1 -_fade $10,$11\r\n -mv[-1] 0 -done\r\n_______________________________________________\r\ngimp-developer-list mailing list\r\ngimp-developer-list@gnome.org\r\nhttp://mail.gnome.org/mailman/listinfo/gimp-developer-list"