Rev 163 | Rev 174 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 163 | Rev 172 | ||
|---|---|---|---|
| Line 1633... | Line 1633... | ||
| 1633 | $x = mt_rand(1, 99); |
1633 | $x = mt_rand(1, 99); |
| 1634 | /*
|
1634 | /*
|
| 1635 | * Decreasing probability of pixels near bottom through exponential distribution;
|
1635 | * Decreasing probability of pixels near bottom through exponential distribution;
|
| 1636 | * TODO: If coord > 50%, decrease probability of appearance.
|
1636 | * TODO: If coord > 50%, decrease probability of appearance.
|
| 1637 | */
|
1637 | */
|
| 1638 | $y = mt_rand(1, $lambda * exp(-$lambda * mt_rand(0, 5)) * 99); |
1638 | $max = $lambda * exp(-$lambda * mt_rand(0, 5)) * 99; |
| - | 1639 | if (1 <= $max) |
|
| - | 1640 | {
|
|
| - | 1641 | $y = mt_rand(1, $max); |
|
| 1639 | $coords[] = array('x' => $x, 'y' => $y); |
1642 | $coords[] = array('x' => $x, 'y' => $y); |
| - | 1643 | }
|
|
| 1640 | }
|
1644 | }
|
| 1641 | 1645 | ||
| 1642 | $dots = array_map(function ($coord) { |
1646 | $dots = array_map(function ($coord) { |
| 1643 | return "-webkit-radial-gradient({$coord['x']}% {$coord['y']}%, 1px 1px, rgba(255, 255, 255, 0.75), rgba(0, 0, 30, 0))"; |
1647 | return "-webkit-radial-gradient({$coord['x']}% {$coord['y']}%, 1px 1px, rgba(255, 255, 255, 0.75), rgba(0, 0, 30, 0))"; |
| 1644 | }, $coords); |
1648 | }, $coords); |
| Line 1854... | Line 1858... | ||
| 1854 | .smallville span { |
1858 | .smallville span { |
| 1855 | position: relative; |
1859 | position: relative; |
| 1856 | top: -0.1em; |
1860 | top: -0.1em; |
| 1857 | font-size: 90%; |
1861 | font-size: 90%; |
| 1858 | }
|
1862 | }
|
| 1859 | 1863 | ||
| - | 1864 | .space-above-beyond { |
|
| - | 1865 | display: inline-block; |
|
| - | 1866 | background-color: black; |
|
| - | 1867 | color: white; |
|
| - | 1868 | padding: 0.25em 0.5em; |
|
| - | 1869 | text-transform: uppercase; |
|
| - | 1870 | }
|
|
| - | 1871 | ||
| - | 1872 | .space-above-beyond .space { |
|
| - | 1873 | display: block; |
|
| - | 1874 | letter-spacing: 0.5em; |
|
| - | 1875 | text-align: justify; |
|
| - | 1876 | }
|
|
| - | 1877 | ||
| - | 1878 | .space-above-beyond .space span { |
|
| - | 1879 | letter-spacing: normal; |
|
| - | 1880 | }
|
|
| - | 1881 | ||
| - | 1882 | .space-above-beyond .above-beyond { |
|
| - | 1883 | display: block; |
|
| - | 1884 | font-size: 50%; |
|
| - | 1885 | word-spacing: 0.5em; |
|
| - | 1886 | text-align: justify; |
|
| - | 1887 | }
|
|
| - | 1888 | ||
| - | 1889 | .space-above-beyond .above-beyond span { |
|
| - | 1890 | word-spacing: normal; |
|
| - | 1891 | }
|
|
| - | 1892 | ||
| 1860 | @font-face {
|
1893 | @font-face {
|
| 1861 | font-family: "Stargate"; |
1894 | font-family: "Stargate"; |
| 1862 | src: local("Stargate"), url(/styles/fonts/STARGATE.TTF); |
1895 | src: local("Stargate"), url(/styles/fonts/STARGATE.TTF); |
| 1863 | }
|
1896 | }
|
| 1864 | 1897 | ||