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

what means "g" ?

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.

8 of 8 messages available
Toggle history

Please log in to manage your subscriptions.

what means "g" ? Cristian Secară 04 Dec 15:40
  what means "g" ? Mukund Sivaraman 04 Dec 15:47
  what means "g" ? Chris Moller 04 Dec 18:06
   what means "g" ? sus@piments.com 04 Dec 19:45
   what means "g" ? gg@catking.net 04 Dec 19:46
    what means "g" ? Cristian Secară 05 Dec 20:03
     what means "g" ? Cristian Secară 05 Dec 20:09
      what means "g" ? Liam R E Quin 05 Dec 20:37
Cristian Secară
2011-12-04 15:40:24 UTC (almost 13 years ago)

what means "g" ?

I have these strings:

Rotate by %-3.3g° around (%g, %g) Shear horizontally by %-3.3g
Shear vertically by %-3.3g
Shear horizontally by %-3.3g, vertically by %-3.3g

What is "g" ? And what is "3.3g" ?

Here "around" means "approximately" ?

Cristi

Mukund Sivaraman
2011-12-04 15:47:52 UTC (almost 13 years ago)

what means "g" ?

Hi Cristian

On Sun, Dec 04, 2011 at 05:40:24PM +0200, Cristian Secară wrote:

I have these strings:

Rotate by %-3.3g° around (%g, %g) Shear horizontally by %-3.3g
Shear vertically by %-3.3g
Shear horizontally by %-3.3g, vertically by %-3.3g

What is "g" ? And what is "3.3g" ?

%g is a printf format specifier for printing floating-point numbers in a particular format. You can see the printf manpage (man 3 printf) for details. For the strings above, you can consider it equivalent to %f.

Mukund

Chris Moller
2011-12-04 18:06:39 UTC (almost 13 years ago)

what means "g" ?

On 12/04/11 10:40, Cristian Secară wrote:

I have these strings:

Rotate by %-3.3g° around (%g, %g) Shear horizontally by %-3.3g
Shear vertically by %-3.3g
Shear horizontally by %-3.3g, vertically by %-3.3g

What is "g" ? And what is "3.3g" ?

Here "around" means "approximately" ?

No, "around," in this context, means rotating around a centre-point at coordinates (5g, %g)

Cristi

sus@piments.com
2011-12-04 19:45:43 UTC (almost 13 years ago)

what means "g" ?

On 12/04/11 19:06, Chris Moller wrote:

On 12/04/11 10:40, Cristian Secară wrote:

I have these strings:

Rotate by %-3.3g° around (%g, %g) Shear horizontally by %-3.3g
Shear vertically by %-3.3g
Shear horizontally by %-3.3g, vertically by %-3.3g

What is "g" ? And what is "3.3g" ?

Here "around" means "approximately" ?

No, "around," in this context, means rotating around a centre-point at coordinates (5g, %g)

Cristi

To anwser your other question, g is part of the floating point format specifier.

%-3.3g , for ex. is not printed, it is replaced by the number.

See man sprintf on linux.

/gg

gg@catking.net
2011-12-04 19:46:35 UTC (almost 13 years ago)

what means "g" ?

On 12/04/11 19:06, Chris Moller wrote:

On 12/04/11 10:40, Cristian Secară wrote:

I have these strings:

Rotate by %-3.3g° around (%g, %g) Shear horizontally by %-3.3g
Shear vertically by %-3.3g
Shear horizontally by %-3.3g, vertically by %-3.3g

What is "g" ? And what is "3.3g" ?

Here "around" means "approximately" ?

No, "around," in this context, means rotating around a centre-point at coordinates (5g, %g)

Cristi

To anwser your other question, g is part of the floating point format specifier.

%-3.3g , for ex. is not printed, it is replaced by the number.

See man sprintf on linux.

/gg

Cristian Secară
2011-12-05 20:03:11 UTC (almost 13 years ago)

what means "g" ?

On Sun, 04 Dec 2011 20:46:35 +0100, gg@catking.net wrote:

Rotate by %-3.3g° around (%g, %g) Shear horizontally by %-3.3g
Shear vertically by %-3.3g
Shear horizontally by %-3.3g, vertically by %-3.3g

To anwser your other question, g is part of the floating point format specifier.

%-3.3g , for ex. is not printed, it is replaced by the number.

Fine, thank you. I also found the first of the above strings in practice, so I checked successfully my translation.

Further question: should't be the ° character be present after all g's ? (like in first string)

Cristi

Cristian Secară
2011-12-05 20:09:26 UTC (almost 13 years ago)

what means "g" ?

On Mon, 5 Dec 2011 22:03:11 +0200, Cristian Secară wrote:

Shear horizontally by %-3.3g
Shear vertically by %-3.3g
Shear horizontally by %-3.3g, vertically by %-3.3g

[...]
Further question: should't be the ° character be present after all g's ? (like in first string)

Or, rephrasing: what measurement unit is the %-3.3g from shearing ?

Cristi

Liam R E Quin
2011-12-05 20:37:11 UTC (almost 13 years ago)

what means "g" ?

On Mon, 2011-12-05 at 22:09 +0200, Cristian Secară wrote:

Further question: should't be the ° character be present after all g's ? (like in first string)

Or, rephrasing: what measurement unit is the %-3.3g from shearing ?

Pixels; ° is only for degrees, e.g. in rotation. One _could_ measure a shear in degrees, but the GIMP UI presents it only in linear units.

Hope this helps.

Liam [Ankh]