import { addTo } from './addTo';
import { getGroup } from './getGroup';
import { getImage } from './getImage';
/**
 * Returns as TextSign object. This helper is using placehold.co to generate the image and is a temporary solution.
 * @example
 * ```ts
  const sign1 = getTextSign({ text: 'I think Hiber is terrific', width: 200, height: 100, p: [0, 2, 0] });
  addTo(mainArena, sign1);
 * ```
 */
export const getTextSign = (options = {}) => {
    const { text = 'I love Hiber', width = 300, height = 200, bgColor = '000', textColor = 'FFF' } = options;
    const wrapper = getGroup(options);
    const img = getImage({
        src: `https://placehold.co/${width}x${height}/${bgColor}/${textColor}/JPG?text=${text}`,
        ratio: width / height,
        name: 'textSign',
    });
    addTo(wrapper, img);
    return wrapper;
};
//# sourceMappingURL=getTextSign.js.map