
Select the box and then select Format Pane. For more details, see Add, copy, or delete a text box in Word.

Insert a text box in your document and type and format your text. Window. Select Text Effects > 3D Rotation > 3D Rotation Options.
#How to make rainbow font on word 2010 code#
This is written in JavaScript, and you can try it by pressing the "Run code snippet" button. That is, all the letters should retain the same colors.įurther rules for the conversion process are described below, in the Rules section. Note that these directions imply that the output for foo and f oo should be exactly the same, except for an added space after the f. The color of this letter can now be expressed, in the HSL cylindrical-coordinate system, as. Let n = the number of non-spaces in the string.

In other words, this is how many non-spaces have been encountered so far. For example, in the string foo bar, this value would be 4 for the a. Select Default and then select Yes to apply the change to all new documents based on the template. Select the arrow next to Font color, and then choose a color. You can also press and hold + D to open the Font dialog box. Let i = the index of this character in the string (0-based, so for the very first letter, this is 0), not counting spaces. Open the template or a document based on the template whose default settings you want to change. it doesn't matter, because spaces can't really.

Note that each letter is its own individual color. To determine what color each letter in the string should become, use the following algorithm. The output may be in image form (saved to a file or somehow otherwise made available), or it may simply display the result on the screen (as the reference implementation below does). Your output should be the same string, converted to rainbow colors as will be described below. It will always be at least two characters long. The first or last characters will never be spaces, and there will never be two spaces in a row. The input will be a string that contains only printable ASCII characters. Your challenge is to take input as a line of text and output it like this.
