1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

parse color: fixed color formula doc

This commit is contained in:
Zeno Rogue 2024-05-27 12:45:37 +02:00
parent 90c7f6e927
commit ba05c94d7b
4 changed files with 24 additions and 18 deletions

View File

@ -9037,19 +9037,20 @@ S("display only chessboard white", "zobrazit pouze bílá políčka šachovnice"
S("display only chessboard black", "zobrazit pouze černá políčka šachovnice") S("display only chessboard black", "zobrazit pouze černá políčka šachovnice")
S( S(
"This lets you specify the color pattern as a function of the cell. " "This lets you specify the color pattern as a function of the cell.\n",
"Zde můžeš specifikovat barevný vzor jako funkci políčka.\n")
S(
"Available parameters:\n\n" "Available parameters:\n\n"
"x, y, z (hyperboloid/sphere/plane coordinates in non-crystal geometries)\n" "x, y, z (hyperboloid/sphere/plane coordinates in non-crystal geometries)\n"
"ex, ey, ez (in Euclidean geometries)\n" "ex, ey, ez (in Euclidean geometries)\n"
"x0, x1, x2... (crystal geometry only)\n" "x0, x1, x2... (crystal geometry only)\n",
"0 is black, 1 is white, rgb(1,0,0) is red, ifp(p-2,1,0) is blue (p=1 for red, 2 for green, 3 for blue).",
"Zde můžeš specifikovat barevný vzor jako funkci políčka. "
"Dostupné parametry:\n\n" "Dostupné parametry:\n\n"
"x, y, z (souřadnice hyperboloidu/koule/roviny v nekrystalových geometriích)\n" "x, y, z (souřadnice hyperboloidu/koule/roviny v nekrystalových geometriích)\n"
"ex, ey, ez (v eukleidovských geometriích)\n" "ex, ey, ez (v eukleidovských geometriích)\n"
"x0, x1, x2... (pouze v krystalové geometrii)\n" "x0, x1, x2... (pouze v krystalové geometrii)\n"
"0 je černá, 1 bílá, rbg(1,0,0) červená, ifp(p-2,1,0) modrá (p=1 pro červenou, 2 pro zelenou, 3 pro modrou)."
) )
S( S(

View File

@ -8652,19 +8652,20 @@ S("display only chessboard white", "afficher seulement le plateau d'échec blanc
S("display only chessboard black", "afficher seulement le plateau d'échec noir") S("display only chessboard black", "afficher seulement le plateau d'échec noir")
S( S(
"This lets you specify the color pattern as a function of the cell. " "This lets you specify the color pattern as a function of the cell.\n",
"Vous laisse choisir le motif de couleur comme fonction de la case.\n")
S(
"Available parameters:\n\n" "Available parameters:\n\n"
"x, y, z (hyperboloid/sphere/plane coordinates in non-crystal geometries)\n" "x, y, z (hyperboloid/sphere/plane coordinates in non-crystal geometries)\n"
"ex, ey, ez (in Euclidean geometries)\n" "ex, ey, ez (in Euclidean geometries)\n"
"x0, x1, x2... (crystal geometry only)\n" "x0, x1, x2... (crystal geometry only)\n",
"0 is black, 1 is white, rgb(1,0,0) is red, ifp(p-2,1,0) is blue (p=1 for red, 2 for green, 3 for blue).",
"Vous laisse choisir le motif de couleur comme fonction de la case. "
"Paramètres disponibles : \n\n" "Paramètres disponibles : \n\n"
"x, y, z (coordonnées hyperboloïde/sphère/plan dans des géométries non-cristallines)\n" "x, y, z (coordonnées hyperboloïde/sphère/plan dans des géométries non-cristallines)\n"
"ex, ey, ez (dans une géométrie euclidienne)\n" "ex, ey, ez (dans une géométrie euclidienne)\n"
"x0, x1, x2... (dans les géométries cristallines seulement)\n" "x0, x1, x2... (dans les géométries cristallines seulement)\n"
"0 est noir, 1 est blanc, rgb(1,0,0) est rouge, ifp(p-2,1,0) est bleu (p=1 pour rouge, 2 pour vert, 3 pour bleu)."
) )
S( S(

View File

@ -8756,20 +8756,21 @@ S("display only chessboard white", "tylko białe pola szachownicy")
S("display only chessboard black", "tylko czarne pola szachownicy") S("display only chessboard black", "tylko czarne pola szachownicy")
S( S(
"This lets you specify the color pattern as a function of the cell. " "This lets you specify the color pattern as a function of the cell.\n",
"Tu możesz określić wzór jako funkcję komórki.\n")
S(
"Available parameters:\n\n" "Available parameters:\n\n"
"x, y, z (hyperboloid/sphere/plane coordinates in non-crystal geometries)\n" "x, y, z (hyperboloid/sphere/plane coordinates in non-crystal geometries)\n"
"ex, ey, ez (in Euclidean geometries)\n" "ex, ey, ez (in Euclidean geometries)\n"
"x0, x1, x2... (crystal geometry only)\n" "x0, x1, x2... (crystal geometry only)\n",
"0 is black, 1 is white, rgb(1,0,0) is red, ifp(p-2,1,0) is blue (p=1 for red, 2 for green, 3 for blue).",
"Tu możesz określić wzór jako funkcję komórki. Dostępne parametry:\n\n" "Dostępne parametry:\n\n"
"x, y, z (współrzędne hiperboloidy/sfery/powierczni, poza kryształami)\n" "x, y, z (współrzędne hiperboloidy/sfery/powierczni, poza kryształami)\n"
"ex, ey, ez (w geometriach euklidesowych)\n" "ex, ey, ez (w geometriach euklidesowych)\n"
"x0, x1, x2... (w kryształach)\n" "x0, x1, x2... (w kryształach)\n"
"0 to czarny, 1 to biały, rgb(1,0,0) to czerwony, ifp(p-2,1,0) to niebieski (p=1 to czerwony, 2 to zielony, 3 to niebieski)."
) )
S( S(
"w (fourth coordinate)\n" "w (fourth coordinate)\n"
"wallif(condition, color)\n", "wallif(condition, color)\n",

View File

@ -1884,12 +1884,15 @@ EX namespace ccolor {
void config_formula(bool instant) { void config_formula(bool instant) {
string s = XLAT( string s = XLAT(
"This lets you specify the color pattern as a function of the cell. " "This lets you specify the color pattern as a function of the cell.\n");
s += XLAT("rgb(r,g,b)\n");
s += XLAT("indexed(f) (where f is a function of p, p=1 for red, 2 for green, 3 for blue)");
s += XLAT(
"Available parameters:\n\n" "Available parameters:\n\n"
"x, y, z (hyperboloid/sphere/plane coordinates in non-crystal geometries)\n" "x, y, z (hyperboloid/sphere/plane coordinates in non-crystal geometries)\n"
"ex, ey, ez (in Euclidean geometries)\n" "ex, ey, ez (in Euclidean geometries)\n"
"x0, x1, x2... (crystal geometry only)\n" "x0, x1, x2... (crystal geometry only)\n"
"0 is black, 1 is white, rgb(1,0,0) is red, ifp(p-2,1,0) is blue (p=1 for red, 2 for green, 3 for blue)."); );
if(MDIM == 4) s += XLAT( if(MDIM == 4) s += XLAT(
"w (fourth coordinate)\n" "w (fourth coordinate)\n"