import { addTo, getGroup, getPrefab, placeInCircle, pop3 } from '.';
/**
 * Adds a sun sail festival tent
 * @example
 * ```ts
  addTo(root, getSunSailFestivalTent({ p: [0, 20, 0], s: pop3(3) }));
 * ```
 */
export const getSunSailFestivalTent = (options = {}) => {
    options = {
        ...options,
    };
    // sun_sail_01
    // sun_sail_02
    const get3 = (opt) => {
        opt.rotYOffset = opt.rotYOffset || 0;
        opt.r = opt.r || [0, 0, 0];
        const object = getPrefab({
            p: opt.p,
            r: [opt.r[0], opt.r[1] + opt.rotYOffset, opt.r[2]],
            s: opt.s,
            id: opt.id || 'sun_sail_02',
            material: opt.material || 'palette_01_red',
        });
        return object;
    };
    const get4 = (opt) => {
        opt.id = 'sun_sail_01';
        return get3(opt);
    };
    const wrapper = getGroup(options);
    const radiusK = 1.1;
    placeInCircle({
        radius: 1.5,
        numberOfItems: 4,
        onEach: (data) => {
            addTo(wrapper, get3({ p: data.p, r: [data.r[0], data.r[1], data.r[2]], rotYOffset: 180 }));
        },
    });
    placeInCircle({
        radius: 3,
        numberOfItems: 8,
        offset: 180 / 8,
        onEach: (data) => {
            addTo(wrapper, get3({ material: 'palette_01_purple', p: data.p, r: data.r, rotYOffset: 180 }));
        },
    });
    placeInCircle({
        radius: 5,
        numberOfItems: 8,
        offset: 0,
        onEach: (data) => {
            addTo(wrapper, get3({ material: 'palette_01_yellow', p: data.p, r: data.r, rotYOffset: 180, s: [2, 1, 1.6] }));
        },
    });
    placeInCircle({
        radius: 8.55,
        numberOfItems: 16,
        offset: 11.6,
        onEach: (data) => {
            addTo(wrapper, get4({ material: 'palette_01_turqoise', p: data.p, r: data.r, rotYOffset: 180, s: pop3(1.3) }));
        },
    });
    placeInCircle({
        radius: 12,
        numberOfItems: 16,
        offset: 11.6,
        onEach: (data) => {
            addTo(wrapper, get3({ material: 't_rainbow_02', p: data.p, r: data.r, rotYOffset: 180, s: [3.5, 1, 1.2] }));
        },
    });
    return wrapper;
};
//# sourceMappingURL=getSunSailFestivalTent.js.map