CX_SETTER_DEF(cxSpline, points) { cxJson points = cxJsonToArray(value); CX_JSON_ARRAY_EACH_BEG(points, item) { cxVec2f point = cxJsonToVec2f(item, cxVec2fv(0, 0)); cxSplineAppend(this, point); }
CX_SETTER_DEF(cxScale, scale) { this->newScale = cxJsonToVec2f(value, this->newScale); }
CX_SETTER_DEF(cxMove, to) { this->to = cxJsonToVec2f(value, this->to); }