summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--README.md26
-rw-r--r--benoit.svg14
-rw-r--r--benoit_square.svg8
-rw-r--r--changelog.html7
-rw-r--r--include/benoit/d/ver.hh2
-rw-r--r--src/benoit/d/ver.cc2
-rw-r--r--src/benoit/wrtimg.cc2
8 files changed, 54 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 56ccd2d..3282c3f 100644
--- a/Makefile
+++ b/Makefile
@@ -59,7 +59,6 @@ SRCS_CXX = \
src/benoit/d/resx.cc \
src/benoit/d/resy.cc \
src/benoit/d/thelog.cc \
- src/benoit/d/ver.cc \
src/benoit/exit.cc \
src/benoit/helpscrn.cc \
src/benoit/kernelstr.cc \
diff --git a/README.md b/README.md
index 2a9f503..76a74e4 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,14 @@
+<center>
+ <img src="https://fadaesen.dk/files/benoit.svg" style="width:16em" />
+</center>
+
# benoit
[*benoit*](https://mandelbrot.dk/delta/benoit) is a free and open-source Mandelbrot renderer written in C++ aimed at producing accurate Mandelbrot renders at arbitrary positions in the set as fast as possible.
-This speed is achieved by using all of the host's avaialable CPUs.
+This speed is achieved by using as many of the host's avaialable CPUs as possible.
-This project is licensed under the GNU Affero General Public License version 3 as published by the Free Software Foundation.
+For information regarding copyright of the software and it's license, please read the *Copyright & License* section down below.
## Building
@@ -30,6 +34,22 @@ Other than that, it also requires the target system to have the LLP64 data-model
Targets with a pointer size of less than 64b are currently incompatible, but architectures like Aarch64, AMD64, IA-64 and PPC64 are expected to work, no-problem.
+## Copyright & License
+
+Copyright (c) 2021 Gabriel Jensen.
+
+All rights reserved.
+
+This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+See the GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License along with this program.
+
+If not, see <https://www.gnu.org/licenses/>.
+
## Questions
### How can I donate?
@@ -58,4 +78,4 @@ This project is named *benoit* in honour of Benoit Mandelbrot, the discoverer of
Benoit was a cool dude, but most people remember him only under the name *Mandelbrot*, if at all.
-I think Benoit is a cool name, and Mr. Mandelbrot was a cool dude, so why not make a cool programme?
+I think Benoit is a cool name, and Mr. Mandelbrot was a cool dude, so why not make a cool programme named after two cool things?
diff --git a/benoit.svg b/benoit.svg
new file mode 100644
index 0000000..6b1cdfb
--- /dev/null
+++ b/benoit.svg
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg height="11" version="1.1" width="29" xmlns="http://www.w3.org/2000/svg">
+ <rect fill="#212022" height="9" rx="1" ry="1" width="27" x="1" y="1" />
+ <rect fill="#FDFAF6" height="7" width="25" x="2" y="2"/>
+ <polygon fill="#212022" points="3,3 5,3 5,4 6,4 6,5 5,5 5,6 6,6 6,7 5,7 5,8 4,8 3,8" />
+ <polygon fill="#FDFAF6" points="4,4 5,4 5,5 4,5" />
+ <polygon fill="#FDFAF6" points="4,6 5,6 5,7 4,7" />
+ <polygon fill="#212022" points="7,3 10,3 10,4 8,4 8,5 9,5 9,6 8,6 8,7 10,7 10,8 7,8" />
+ <polygon fill="#212022" points="11,3 12,3 12,4 13,4 13,3 14,3 14,8 13,8 13,7 12,7 12,8 11,8" />
+ <polygon fill="#212022" points="15,3 18,3 18,8 15,8" />
+ <polygon fill="#FDFAF6" points="16,4 17,4 17,7 16,7" />
+ <polygon fill="#212022" points="19,3 22,3 22,4 21,4 21,7 22,7 22,8 19,8 19,7 20,7 20,4 19,4" />
+ <polygon fill="#212022" points="23,3 26,3 26,4 25,4 25,8 24,8 24,4 23,4" />
+</svg>
diff --git a/benoit_square.svg b/benoit_square.svg
new file mode 100644
index 0000000..ac70db6
--- /dev/null
+++ b/benoit_square.svg
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg height="11" version="1.1" width="11" xmlns="http://www.w3.org/2000/svg">
+ <rect fill="#212022" height="9" rx="1" ry="1" width="9" x="1" y="1" />
+ <rect fill="#FDFAF6" height="7" width="7" x="2" y="2"/>
+ <polygon fill="#212022" points="4,3 6,3 6,4 7,4 7,5 6,5 6,6 7,6 7,7 6,7 6,8 5,8 4,8" />
+ <polygon fill="#FDFAF6" points="5,4 6,4 6,5 5,5" />
+ <polygon fill="#FDFAF6" points="5,6 6,6 6,7 5,7" />
+</svg>
diff --git a/changelog.html b/changelog.html
index 39d3224..fc391f8 100644
--- a/changelog.html
+++ b/changelog.html
@@ -4,6 +4,13 @@
<meta charset="utf-8">
</head>
<body>
+ <h1>7</h1>
+ <ul>
+ <li>Fix #1.</li>
+ <li>Fix some language mistakes.</li>
+ <li>Add a <i>Copyright & License</i> page in <i>README.md</i>.</li>
+ <li>Create logo.</li>
+ </ul>
<h1>6</h1>
<ul>
<li>Actually switch compiler from Clang++ to G++.</li>
diff --git a/include/benoit/d/ver.hh b/include/benoit/d/ver.hh
index 79a8cf7..b262659 100644
--- a/include/benoit/d/ver.hh
+++ b/include/benoit/d/ver.hh
@@ -1,6 +1,6 @@
# pragma once
namespace benoit {
namespace d {
- unsigned long long extern ver;
+ unsigned long long constexpr ver = 0x7;
}
}
diff --git a/src/benoit/d/ver.cc b/src/benoit/d/ver.cc
deleted file mode 100644
index 0e2860f..0000000
--- a/src/benoit/d/ver.cc
+++ /dev/null
@@ -1,2 +0,0 @@
-# include <benoit/d/ver.hh>
-unsigned long long benoit::d::ver = 0x6ull;
diff --git a/src/benoit/wrtimg.cc b/src/benoit/wrtimg.cc
index 8a38ee9..7e62b34 100644
--- a/src/benoit/wrtimg.cc
+++ b/src/benoit/wrtimg.cc
@@ -31,7 +31,7 @@ void benoit::wrtimg(std::vector<std::uint8_t> * img) {
datsiz = WebPEncodeLosslessRGB(img->data(),benoit::d::resx,benoit::d::resy,(benoit::d::resy * 0x3),&dat);
break;
}
- int file = ::open(benoit::d::outimg.c_str(),O_TRUNC | O_WRONLY);
+ int file = ::open(benoit::d::outimg.c_str(),(O_CREAT | O_TRUNC | O_WRONLY),0x1B4);
auto iterwrt = [](int & file,std::uint8_t * & dat,unsigned long long & datsiz) {
for(unsigned long long pos = 0x0;(pos < datsiz);++pos) {
::ssize_t byteswrtn = ::write(file,&dat[pos],0x1);