{"name":"BIN_fnc_bezierEditor","operator":null,"title":"BIN fnc bezierEditor","type":"function","url":"https://community.bistudio.com/wiki/BIN_fnc_bezierEditor","revid":363747,"updated":"2024-04-17T15:24:36Z","groups":["Interpolation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.94"}],"since":{"game":"arma3","name":"Arma 3","version":"1.94"},"arma3_since":"1.94","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"```\n#define POINT_W            (0.03)\n#define POINT_H            (POINT_W / 0.75)\n#define RESOLUTION        50\n#define MAX_POINTS        16\n#define GRIDS            10\n#define REFRESH            ([_ctrlParent] call (_ctrlArea getvariable \"fnc_draw\"))\n#define POINTS            (_ctrlArea getvariable \"points\")\n#define LINES            (_ctrlArea getvariable \"lines\")\n#define CURVE            (_ctrlArea getvariable \"curve\")\n#define BUTTONS            (_ctrlArea getvariable \"buttons\")\n#define HOVER            (_ctrlArea getvariable \"hover\")\n#define SELECTED        (_ctrlArea getvariable \"selected\")\n#define SET_HOVER(CTRL)        _ctrlArea setvariable [\"hover\",CTRL]; CTRL ctrlsettextcolor COLOR_SELECTED\n#define SET_SELECTED(CTRL)    _ctrlArea setvariable [\"selected\",CTRL]\n#define COLOR_BACKGROUND    [0.4,0.4,0.4,1]\n#define COLOR            [0,0,0,1]\n#define COLOR_SELECTED        [1,1,1,1]\n#define COLOR_CURVE        [1,0,0,1]\n#define COLOR_LINE        [0,0,0,0.2]\n#define COLOR_TIMELINE        [1,1,1,1]\n#define COLOR_GRID        [1,1,1,0.3]\n#define POINT_POS        [\\\n                    (_posX - POINT_W / 2) max 0 min ((ctrlposition _ctrlArea select 2) - POINT_W),\\\n                    (_posY - POINT_H / 2) max 0 min ((ctrlposition _ctrlArea select 3) - POINT_H),\\\n                    POINT_W,\\\n                    POINT_H\\\n                ]\n```\n\n \n\n> [!NOTE]\n> This content is exclusive to the Arma 3 Contact Expansion.","syntaxes":[{"syntax":"","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"","types":[],"description":null,"text":""}}],"examples":[],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Interpolation","Functions","Introduced with Arma 3 version 1.94"],"docblock":null,"filled_from_docblock":[]}