hash function naming

This commit is contained in:
udo
2022-01-19 22:38:48 +00:00
parent 08496afa11
commit c17c72d59f
18 changed files with 71 additions and 52 deletions
+6 -6
View File
@@ -1,9 +1,9 @@
Noise Functions
Noise/Hash Functions
draw_float
draw_int
generate_float
generate_int
noise01
noise32
noise64
gen_noise01
gen_noise32
gen_noise64
gen_float
gen_int
+11 -9
View File
@@ -25,9 +25,9 @@ RENDER()
String page = first(context->get["p"], "index");
<><html>
<header>
<link rel="stylesheet" href='style.css'></link>
</header>
<head>
<link rel="stylesheet" href='style.css?v=<?= time() ?>'></link>
</head>
<body>
<h1>
<a href="index.uce">UCE Docs</a>:
@@ -72,9 +72,10 @@ RENDER()
{
auto doc = split(file_get_contents("pages/"+page+".txt"), "\n");
String layout_class = "text";
?><div><?
u32 line_idx = 0;
for(auto s : doc)
{
line_idx++;
if(s == "")
{
@@ -82,7 +83,11 @@ RENDER()
else if(s.substr(0, 1) == ":")
{
layout_class = s.substr(1);
?></div><?
if(line_idx > 1)
{
?></div><?
}
?><div class="<?= layout_class ?>"><?
if(layout_class == "params")
{
?><h3>Parameters</h3><?
@@ -101,13 +106,12 @@ RENDER()
}
else if(layout_class == "see")
{
?><h3>Related</h3><?
/*?><h3>Related</h3><?*/
}
else
{
?><h3><?= layout_class ?></h3><?
}
?><div class="<?= layout_class ?>"><?
}
else
{
@@ -122,7 +126,6 @@ RENDER()
}
else if(layout_class == "see")
{
?><div style="margin-left: 2em"><?
if(s[0] == '>')
{
render_see_section(s.substr(1));
@@ -131,7 +134,6 @@ RENDER()
{
?><div><a href="index.uce?p=<?= trim(s) ?>"><?= trim(s) ?><span style="opacity:0.5">()</span></a></div><?
}
?></div><?
}
else
{
+19 -12
View File
@@ -6,9 +6,15 @@
line-height: inherit;
}
h1 {
font-family: monospace;
font-size: 200%;
padding-top: 8px;
padding-bottom: 8px;
}
body {
max-width: 1024px;
margin: 0;
margin-left: auto;
margin-right: auto;
padding-left: 16px;
@@ -16,22 +22,19 @@ body {
font-family: Tahoma, Helvetica, Arial;
font-size: 1.2em;
box-sizing: border-box;
background: #24f;
background: #139;
color: white;
line-height: 150%;
}
a {
color: yellow;
body > * {
background: rgba(255,255,255,0.1);
padding: 32px;
margin: 16px;
}
h1 {
font-size: 200%;
padding-top: 16px;
padding-bottom: 16px;
border-bottom: 8px solid rgba(0,0,0,0.5);
margin: 0;
margin-bottom: 8px;
a {
color: yellow;
}
form > div, label {
@@ -79,7 +82,11 @@ pre {
}
h3 {
margin: 0;
font-family: monospace;
font-size: 1.4em;
margin-bottom: 0.8em;
opacity: 0.7;
}
.sig {