.. _eu.gmic.SquaretoCircle:

G’MIC Square to Circle node
===========================

.. raw:: html

   <!-- Do not edit this file! It is generated automatically by Natron itself. -->

*This documentation is for version 1.0 of G’MIC Square to Circle (eu.gmic.SquaretoCircle).*

Description
-----------

This filter implements the mapping functions described in this page, by C. Fong:

http://squircular.blogspot.com/2015/09/mapping-circle-to-square.html

Author: David Tschumperle. Latest Update: 2017/10/30.

Wrapper for the G’MIC framework (http://gmic.eu) written by Tobias Fleischer (http://www.reduxfx.com) and Frederic Devernay.

Inputs
------

+--------+-------------+----------+
| Input  | Description | Optional |
+========+=============+==========+
| Source |             | No       |
+--------+-------------+----------+

Controls
--------

.. tabularcolumns:: |>{\raggedright}p{0.2\columnwidth}|>{\raggedright}p{0.06\columnwidth}|>{\raggedright}p{0.07\columnwidth}|p{0.63\columnwidth}|

.. cssclass:: longtable

+-----------------------------------------------+---------+------------------+------------------------+
| Parameter / script name                       | Type    | Default          | Function               |
+===============================================+=========+==================+========================+
| Mode / ``Mode``                               | Choice  | Square to Circle | |                      |
|                                               |         |                  | | **Square to Circle** |
|                                               |         |                  | | **Circle to Square** |
+-----------------------------------------------+---------+------------------+------------------------+
| Interpolation / ``Interpolation``             | Choice  | Linear           | |                      |
|                                               |         |                  | | **Nearest Neighbor** |
|                                               |         |                  | | **Linear**           |
+-----------------------------------------------+---------+------------------+------------------------+
| Boundary / ``Boundary``                       | Choice  | Transparent      | |                      |
|                                               |         |                  | | **Transparent**      |
|                                               |         |                  | | **Nearest**          |
|                                               |         |                  | | **Periodic**         |
|                                               |         |                  | | **Mirror**           |
+-----------------------------------------------+---------+------------------+------------------------+
| X-Factor (%) / ``XFactor_``                   | Double  | 0                |                        |
+-----------------------------------------------+---------+------------------+------------------------+
| Y-Factor (%) / ``YFactor_``                   | Double  | 0                |                        |
+-----------------------------------------------+---------+------------------+------------------------+
| X-Offset (%) / ``XOffset_``                   | Double  | 0                |                        |
+-----------------------------------------------+---------+------------------+------------------------+
| Y-Offset (%) / ``YOffset_``                   | Double  | 0                |                        |
+-----------------------------------------------+---------+------------------+------------------------+
| Output Layer / ``Output_Layer``               | Choice  | Layer 0          | |                      |
|                                               |         |                  | | **Merged**           |
|                                               |         |                  | | **Layer 0**          |
|                                               |         |                  | | **Layer -1**         |
|                                               |         |                  | | **Layer -2**         |
|                                               |         |                  | | **Layer -3**         |
|                                               |         |                  | | **Layer -4**         |
|                                               |         |                  | | **Layer -5**         |
|                                               |         |                  | | **Layer -6**         |
|                                               |         |                  | | **Layer -7**         |
|                                               |         |                  | | **Layer -8**         |
|                                               |         |                  | | **Layer -9**         |
+-----------------------------------------------+---------+------------------+------------------------+
| Resize Mode / ``Resize_Mode``                 | Choice  | Dynamic          | |                      |
|                                               |         |                  | | **Fixed (Inplace)**  |
|                                               |         |                  | | **Dynamic**          |
|                                               |         |                  | | **Downsample 1/2**   |
|                                               |         |                  | | **Downsample 1/4**   |
|                                               |         |                  | | **Downsample 1/8**   |
|                                               |         |                  | | **Downsample 1/16**  |
+-----------------------------------------------+---------+------------------+------------------------+
| Ignore Alpha / ``Ignore_Alpha``               | Boolean | Off              |                        |
+-----------------------------------------------+---------+------------------+------------------------+
| Global Random Seed / ``Global_Random_Seed``   | Integer | 0                |                        |
+-----------------------------------------------+---------+------------------+------------------------+
| Animate Random Seed / ``Animate_Random_Seed`` | Boolean | Off              |                        |
+-----------------------------------------------+---------+------------------+------------------------+
| Log Verbosity / ``Log_Verbosity``             | Choice  | Off              | |                      |
|                                               |         |                  | | **Off**              |
|                                               |         |                  | | **Level 1**          |
|                                               |         |                  | | **Level 2**          |
|                                               |         |                  | | **Level 3**          |
+-----------------------------------------------+---------+------------------+------------------------+
