The navigation bar for a winning entry now has a "_Original C_" link
(between the ✅ and the Inventory on the right hand side) so that one
may easily view the original C code that was submitted for IOCCC judging.
Ran `make www timestamp` to perform the above.
766 lines
30 KiB
HTML
766 lines
30 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||
<!-- START: two lines up starts content from: inc/top.default.html -->
|
||
|
||
<!-- END: this line ends content from: inc/top.default.html -->
|
||
<!-- START: this line starts content from: inc/head.default.html -->
|
||
|
||
<head>
|
||
<link rel="stylesheet" href="../../ioccc.css">
|
||
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap" rel="stylesheet">
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||
<title>1994/tvr - Best X11 program</title>
|
||
<link rel="icon" type="image/x-icon" href="../../favicon.ico">
|
||
<meta name="description" content="1994 IOCCC entry tvr - Best X11 program">
|
||
<meta name="keywords" content="IOCCC, 1994, IOCCC 1994, IOCCC entry, tvr, Best X11 program">
|
||
</head>
|
||
|
||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||
<!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
|
||
<!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
|
||
<!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
|
||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||
|
||
<!-- END: this line ends content from: inc/head.default.html -->
|
||
|
||
<!-- -->
|
||
<!-- This web page was formed via the tool: bin/readme2index.sh -->
|
||
<!-- The content of main section of this web page came from: 1994/tvr/README.md -->
|
||
<!-- -->
|
||
|
||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||
<!-- !!! Do not modify this web page, instead modify the file: 1994/tvr/README.md !!! -->
|
||
<!-- !!! Do not modify this web page, instead modify the file: 1994/tvr/README.md !!! -->
|
||
<!-- !!! Do not modify this web page, instead modify the file: 1994/tvr/README.md !!! -->
|
||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||
|
||
<!-- Markdown content was converted into HTML via the tool: bin/md2html.sh -->
|
||
|
||
<!-- START: this line starts content from: inc/body.default.html -->
|
||
|
||
<body>
|
||
|
||
<!-- END: this line ends content from: inc/body.default.html -->
|
||
<!-- START: this line starts content from: inc/topbar.default.html -->
|
||
|
||
<div class="theader">
|
||
<nav class="topbar">
|
||
<div class="container">
|
||
<div class="logo">
|
||
<a href="../../index.html" class="logo-link">
|
||
IOCCC
|
||
</a>
|
||
</div>
|
||
|
||
<div class="topbar-items">
|
||
<div class="item">
|
||
<span class="item-header">
|
||
Entries
|
||
</span>
|
||
|
||
<div class="sub-item">
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../years.html" class="sub-item-link">
|
||
Winning entries
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../authors.html" class="sub-item-link">
|
||
Winning authors
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../location.html" class="sub-item-link">
|
||
Location of authors
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../bugs.html" class="sub-item-link">
|
||
Bugs and (mis)features
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../faq.html#fix_an_entry" class="sub-item-link">
|
||
Fixing entries
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../faq.html#fix_author" class="sub-item-link">
|
||
Updating author info
|
||
</a>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="item">
|
||
<span class="item-header">
|
||
Status
|
||
</span>
|
||
|
||
<div class="sub-item">
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../news.html" class="sub-item-link">
|
||
News
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../status.html" class="sub-item-link">
|
||
Contest status
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../next/rules.html" class="sub-item-link">
|
||
IOCCC rules
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../next/guidelines.html" class="sub-item-link">
|
||
IOCCC guidelines
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../markdown.html" class="sub-item-link">
|
||
Markdown guidelines
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../SECURITY.html" class="sub-item-link">
|
||
Security policy
|
||
</a>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="item">
|
||
<span class="item-header">
|
||
FAQ
|
||
</span>
|
||
|
||
<div class="sub-item">
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../faq.html" class="sub-item-link">
|
||
Frequently asked questions
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../quick-start.html#enter" class="sub-item-link">
|
||
Enter the IOCCC
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../faq.html#compiling" class="sub-item-link">
|
||
Compiling entries
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../faq.html#running_entries" class="sub-item-link">
|
||
Running entries
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../faq.html#help" class="sub-item-link">
|
||
How to help
|
||
</a>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="item">
|
||
<span class="item-header">
|
||
About
|
||
</span>
|
||
|
||
<div class="sub-item">
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../index.html" class="sub-item-link">
|
||
Home page
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../social.html" class="sub-item-link">
|
||
IOCCC social media
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../about.html" class="sub-item-link">
|
||
About the IOCCC
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../judges.html" class="sub-item-link">
|
||
The judges
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../thanks-for-help.html" class="sub-item-link">
|
||
Thanks for the help
|
||
</a>
|
||
</div>
|
||
|
||
<div class="outfit-font">
|
||
<a href="../../contact.html" class="sub-item-link">
|
||
Contact us
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
|
||
<div class="header-mobile-menu">
|
||
<noscript>
|
||
<a href="../../nojs-menu.html" class="topbar-js-label">
|
||
Please Enable JavaScript
|
||
</a>
|
||
</noscript>
|
||
|
||
<button id="header-open-menu-button" class="topbar-mobile-menu">
|
||
<img
|
||
src="../../png/hamburger-icon-open.png"
|
||
alt="hamburger style menu icon - open state"
|
||
width=48
|
||
height=48>
|
||
</button>
|
||
|
||
<button id="header-close-menu-button" class="hide-content">
|
||
<img
|
||
src="../../png/hamburger-icon-closed.png"
|
||
alt="hamburger style menu icon - closed state"
|
||
width=48
|
||
height=48>
|
||
</button>
|
||
|
||
<div id="mobile-menu-panel" class="hide-content">
|
||
<div class="mobile-menu-container">
|
||
|
||
<div class="mobile-menu-wrapper">
|
||
<div class="mobile-menu-item">
|
||
Entries
|
||
</div>
|
||
<div class="mobile-submenu-wrapper">
|
||
|
||
<a class="mobile-submenu-item" href="../../years.html">
|
||
Winning entries
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../authors.html">
|
||
Winning authors
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../location.html">
|
||
Location of authors
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../bugs.html">
|
||
Bugs and (mis)features
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../faq.html#fix_an_entry">
|
||
Fixing entries
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../faq.html#fix_author">
|
||
Updating author info
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../thanks-for-help.html">
|
||
Thanks for the help
|
||
</a>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="mobile-menu-wrapper">
|
||
|
||
<div class="mobile-menu-item">
|
||
Status
|
||
</div>
|
||
<div class="mobile-submenu-wrapper">
|
||
|
||
<a class="mobile-submenu-item" href="../../news.html">
|
||
News
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../status.html">
|
||
Contest status
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../next/rules.html">
|
||
IOCCC rules
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../next/guidelines.html">
|
||
IOCCC guidelines
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../markdown.html">
|
||
Markdown guidelines
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../SECURITY.html">
|
||
Security policy
|
||
</a>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="mobile-menu-wrapper">
|
||
<div class="mobile-menu-item">
|
||
FAQ
|
||
</div>
|
||
<div class="mobile-submenu-wrapper">
|
||
|
||
<a class="mobile-submenu-item" href="../../faq.html">
|
||
Frequently asked questions
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../quick-start.html#enter">
|
||
Enter the IOCCC
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../faq.html#compiling">
|
||
Compiling entries
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../faq.html#running_entries">
|
||
Running entries
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../faq.html#help">
|
||
How to help
|
||
</a>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="mobile-menu-wrapper">
|
||
<div class="mobile-menu-item">
|
||
About
|
||
</div>
|
||
<div class="mobile-submenu-wrapper">
|
||
|
||
<a class="mobile-submenu-item" href="../../index.html">
|
||
Home page
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../social.html">
|
||
IOCCC social media
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../about.html">
|
||
About the IOCCC
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../judges.html">
|
||
The judges
|
||
</a>
|
||
|
||
<a class="mobile-submenu-item" href="../../contact.html">
|
||
Contact us
|
||
</a>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<script>
|
||
var headerOpenMenuButton = document.getElementById("header-open-menu-button");
|
||
var headerCloseMenuButton = document.getElementById("header-close-menu-button");
|
||
var mobileMenuPanel = document.getElementById("mobile-menu-panel");
|
||
|
||
headerOpenMenuButton.addEventListener("click", () => {
|
||
headerOpenMenuButton.classList.remove("topbar-mobile-menu");
|
||
headerOpenMenuButton.classList.add("hide-content");
|
||
|
||
headerCloseMenuButton.classList.remove("hide-content");
|
||
headerCloseMenuButton.classList.add("topbar-mobile-menu");
|
||
|
||
mobileMenuPanel.classList.remove("hide-content");
|
||
mobileMenuPanel.classList.add("topbar-mobile-panel");
|
||
});
|
||
|
||
headerCloseMenuButton.addEventListener("click", () => {
|
||
headerCloseMenuButton.classList.remove("topbar-mobile-menu");
|
||
headerCloseMenuButton.classList.add("hide-content");
|
||
|
||
mobileMenuPanel.classList.add("hide-content");
|
||
mobileMenuPanel.classList.remove("topbar-mobile-panel");
|
||
|
||
headerOpenMenuButton.classList.add("topbar-mobile-menu");
|
||
headerOpenMenuButton.classList.remove("hide-content");
|
||
});
|
||
</script>
|
||
|
||
<!-- END: this line ends content from: inc/topbar.default.html -->
|
||
<!-- START: this line starts content from: inc/header.default.html -->
|
||
|
||
<div class="header">
|
||
<a href="../../2011/zucker/index.html">
|
||
<img src="../../png/ioccc.png"
|
||
alt="IOCCC image by Matt Zucker"
|
||
width=300
|
||
height=110>
|
||
</a>
|
||
<h1>The International Obfuscated C Code Contest</h1>
|
||
<h2>1994/tvr - Best X11 program</h2>
|
||
<h3>interactive fractals for the X Window System</h3>
|
||
</div>
|
||
|
||
<!-- END: this line ends content from: inc/header.default.html -->
|
||
<!-- START: this line starts content from: inc/navbar.mid.html -->
|
||
|
||
<div class="navbar">
|
||
<a class="Left" href="../smr/index.html">← 1994/smr</a>
|
||
<a class="Left" href="../index.html">↑ 1994 ↑</a>
|
||
<a class="Left" href="../weisberg/index.html">1994/weisberg →</a>
|
||
<a class="Right" href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/tvr.c">C code</a>
|
||
<a class="Right" href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/Makefile">Makefile</a>
|
||
<a class="Right" href="#inventory">Inventory</a>
|
||
<a class="Right" href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/tvr.orig.c">Original C</a>
|
||
<a class="Right" href="https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.ioccc.org%2F1994%2Ftvr%2Findex.html">✓</a>
|
||
</div>
|
||
|
||
<!-- END: this line ends content from: inc/navbar.mid.html -->
|
||
<!-- START: this line starts content from: inc/before-content.default.html -->
|
||
|
||
<div class="content" id="content">
|
||
|
||
<!-- END: this line ends content from: inc/before-content.default.html -->
|
||
<!-- START: this line starts content for HTML phase 20 by: bin/output-index-author.sh via bin/md2html.sh -->
|
||
|
||
<!-- START: this line starts content generated by: bin/output-index-author.sh -->
|
||
|
||
<h2 id="author">Author:</h2>
|
||
<ul>
|
||
<li>Name: <a href="../../authors.html#Teemu_Rantanen">Teemu Rantanen</a><br>
|
||
Location: <a href="../../location.html#FI">FI</a> - <em>Republic of Finland </em> (<em>Finland</em>)</li>
|
||
</ul>
|
||
|
||
<!-- END: next line ends content generated by: bin/output-index-author.sh -->
|
||
|
||
<!-- END: this line ends content for HTML phase 20 by: bin/output-index-author.sh via bin/md2html.sh -->
|
||
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
|
||
|
||
<!-- BEFORE: 1st line of markdown file: 1994/tvr/README.md -->
|
||
<h2 id="to-build">To build:</h2>
|
||
<pre><code> make all</code></pre>
|
||
<p><strong>NOTE</strong>: this entry requires the <code>X11/Xlib.h</code> header file and the X11 library to
|
||
compile. For more information see the
|
||
FAQ on “<a href="../../faq.html#X11">X11</a>”.</p>
|
||
<p>The author provided a less obfuscated version as alternate code. See <a href="#alternate-code">Alternate
|
||
code</a> below.</p>
|
||
<h3 id="bugs-and-misfeatures">Bugs and (Mis)features:</h3>
|
||
<p>The current status of this entry is:</p>
|
||
<blockquote>
|
||
<p><strong>STATUS: INABIAF - please DO NOT fix</strong></p>
|
||
</blockquote>
|
||
<p>For more detailed information see <a href="../../bugs.html#1994_tvr">1994/tvr in bugs.html</a>.</p>
|
||
<h2 id="to-use">To use:</h2>
|
||
<pre><code> ./tvr mode screensize/2 < colormapfile</code></pre>
|
||
<p>Mode may be a value from 0 to 12.</p>
|
||
<h2 id="try">Try:</h2>
|
||
<pre><code> ./try.color.sh # for colour displays
|
||
./try.bw.sh # for Black & White displays</code></pre>
|
||
<h2 id="alternate-code">Alternate code:</h2>
|
||
<h3 id="notice-to-those-who-wish-for-a-greater-challenge">NOTICE to those who wish for a greater challenge:</h3>
|
||
<p><strong>If you want a greater challenge, don’t read any further</strong>:
|
||
just try to understand the program without looking at the Alternate code.</p>
|
||
<p>If you get stuck, come back and look at the Alternate code.</p>
|
||
<p>The author provided us a less obfuscated version that might be of interest to some.</p>
|
||
<h3 id="alternate-build">Alternate build:</h3>
|
||
<pre><code> make alt</code></pre>
|
||
<h3 id="alternate-use">Alternate use:</h3>
|
||
<pre><code> ./tvr.alt altmode screensize/2 < colormapfile</code></pre>
|
||
<p>where <code>altmode</code> <code>1</code> - <code>4</code> correspond to mode <code>0</code> - <code>3</code> in the original entry and
|
||
<code>altmode 0</code> calculates Mandelbrot/Julian sets correctly.</p>
|
||
<h3 id="alternate-try">Alternate try:</h3>
|
||
<pre><code> ./try.alt.color.sh # for colour displays
|
||
./try.alt.bw.sh # for Black & White displays</code></pre>
|
||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||
<p>This entry requires the use of X11. It will form two windows (hopefully your
|
||
window manager will ask you where to place these in your display) which you
|
||
should place side by side. Move the cursor around in one of the two windows and
|
||
watch what happens.</p>
|
||
<p>The fractally minded may be able to detect that mode 0 does not calculate
|
||
Mandelbrot/Julian sets correctly. Can you find the bug? Better still, can you
|
||
fix it without breaking something else?</p>
|
||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||
<h3 id="interactive-fractals-for-x-window-system">Interactive Fractals for X Window System</h3>
|
||
<p>This program contains four pairs of fractals/effects and three methods of
|
||
animating them. There are two windows for a pair of fractals, one of which
|
||
contains static fractal (e.g., <a href="https://en.wikipedia.org/wiki/Mandelbrot_set">Mandelbrot</a> set)
|
||
and the other an animating
|
||
one (e.g., <a href="https://en.wikipedia.org/wiki/Julia_set">Julia</a> set) which is derived
|
||
from the same formula as the static one. Only one pair of fractals can be
|
||
displayed in one process.</p>
|
||
<p>To animate the fractal, you must move your mouse on the static
|
||
fractal window and the animated fractal will be calculated based
|
||
on mouse coordinates. If you are on one of the two non-stable
|
||
modes (more about them later) you can stabilize the picture by
|
||
pressing a mouse button. Pressing it does nothing on stable mode.</p>
|
||
<p>The three modes are:</p>
|
||
<ul>
|
||
<li>non-stable mode with simple ‘attractor searcher’</li>
|
||
<li>non-stable mode</li>
|
||
<li>stable mode</li>
|
||
</ul>
|
||
<p>On Mandelbrot/Julia mode the stable mode calculates normal Julia set according
|
||
to the Mandelbrot coordinates (mouse position). On non-stable modes the picture
|
||
slowly transforms to the same picture as on the stable mode but transformation
|
||
can take some time. Usually, and especially if changes are relatively small
|
||
between mouse movements or frame rate is high, the non-stable mode makes much
|
||
more interesting effects IMHO. The difference between the two non-stable modes
|
||
is that the first tries to stabilize the picture. It doesn’t stabilize much, but
|
||
it helps in some cases quite a lot. One notable case where help can be seen is
|
||
when you first move your mouse to non-black areas of the Mandelbrot set, then
|
||
back to near the center. In some cases ‘attractor searcher’ can be seen as
|
||
noise.</p>
|
||
<p>The first of the fractal pairs is Mandelbrot/Julia set as mentioned before. The
|
||
second is a variation of that. The third makes nice 3D-look-a-like effects and
|
||
the fourth is a variation of that with more nice effects.</p>
|
||
<h3 id="usage">Usage:</h3>
|
||
<pre><code> ./tvr mode screensize/2 < colormapfile</code></pre>
|
||
<p>The first parameter is the operating-mode of the program. There are 4 fractal
|
||
pairs and 3 display modes, making total of 12 modes. <code>screensize</code> is half of the
|
||
actual <code>screenlength/width</code>. I.e. if you use 128 as a second parameter, you will
|
||
get two 256x256 windows.</p>
|
||
<p>The program needs reasonable values for both of these parameters to
|
||
operate. A good first try could be <code>0 128</code> or <code>8 128</code>. The <code>colormap</code> has
|
||
to be redirected into the programs standard input via the <code>colormapfile</code>
|
||
parameter as shown above.</p>
|
||
<p>Note that you will need approximately <code>(second_parameter^2)*64</code> bytes of free
|
||
main memory or the machine will swap heavily (memory references are quite random
|
||
and may confuse paging algorithms easily). This means that for 512x512 windows
|
||
you will need 4M of memory.</p>
|
||
<h4 id="colormapfile">colormapfile</h4>
|
||
<p>This is the file from which program reads colors for screen <code>colormap</code>. The
|
||
first line of the file must be a number between <code>3..254</code>. This informs the
|
||
program how many colors there are to be expected. This is also the maximum
|
||
number of iterations used on picture calculations. Lines after that are X11
|
||
color names. The program expects to find, and will use, the number of colors
|
||
reported on the first line.</p>
|
||
<p>There are two <code>colormapfile</code>s to start with. One with colors and another with
|
||
only black and white. If you have enough colors on your display you can use the
|
||
one with colors (even on <code>grayscale</code>). The other is meant mainly for a one bit
|
||
plane display (on which the picture looks terrible compared to a 8 bit plane
|
||
display).</p>
|
||
<h3 id="compilation">Compilation</h3>
|
||
<p>You should compile this entry with an optimizing compiler with the
|
||
highest level of optimization possible. You will also need an ANSI
|
||
compatible compiler (<code>gcc -ansi -pedantic</code> will do fine).</p>
|
||
<p>This entry has been tested on wide variety of machines including:</p>
|
||
<pre><code> Machine OS
|
||
------- --
|
||
Decstation 5000/240 Ultrix 4.3A
|
||
DECAlpha 3000/300 OSF/1 v1.3
|
||
and v2.0
|
||
IBM RS6000 AIX v3
|
||
SPARCStation IPX SunOS 4.1.3
|
||
i486 Linux v1.1.8
|
||
(binarysize
|
||
3576 bytes
|
||
using
|
||
`gcc -O6 -s -N` ;)
|
||
HP 9000/730 HP-UX</code></pre>
|
||
<p>Also, many of the X server and X library versions have been tested and the
|
||
program should be highly portable. The program may slow down considerably on
|
||
machines where table references are slow as the program makes extensive use of
|
||
them. Also, due to the huge amount of data sent to the X server, considerable
|
||
slowdown can be noticed if the X server is slow or especially if the connection
|
||
between the X server and the client is slow. (Don’t try this on 9600 bps modem
|
||
line. I did ;) )</p>
|
||
<h3 id="obfuscation">Obfuscation</h3>
|
||
<p>Obfuscation is done on different levels. Almost none of it is made at the macro
|
||
level, so <code>cpp</code>ing the code won’t give you much. Perhaps most notable is the
|
||
algorithmic obfuscation. Simple formula has been turned into something
|
||
completely different. Also it may be a surprise to find out which piece of the
|
||
code calculates non-stable fractals and how it does that. Many obfuscations were
|
||
left out of the program because speed of animation was one of the key issues.
|
||
Well, obfuscated or not, some of the effects are very nice ;)</p>
|
||
<h3 id="memory-refreshment">Memory refreshment</h3>
|
||
<p>Mandelbrot set is calculated from the formula</p>
|
||
<pre><code> 2
|
||
Z = Z + Z
|
||
n+1 n 0</code></pre>
|
||
<p>and the Julia set is calculated from the formula</p>
|
||
<pre><code> 2
|
||
Z = Z + C
|
||
n+1 n</code></pre>
|
||
<p>where <code>C</code> is the same throughout the picture. Both calculation are finished
|
||
when <code>|Z| >= 2.0</code>. For the other fractals, the basic methods are the same but
|
||
the formula is different (look at the source ;) )</p>
|
||
<p>Note that Mandelbrot and Julia on this program aren’t exactly correct. Find out
|
||
why ;)</p>
|
||
<h3 id="bugs">Bugs</h3>
|
||
<ul>
|
||
<li>No error checking. If <code>DISPLAY</code> is not set program dumps core. This may also
|
||
happen if a request of some of the resources fails e.g. getting colors.</li>
|
||
<li>No expose event handling.</li>
|
||
<li>It may be possible that the program starts drawing before window is mapped as
|
||
there is no <code>XSync()</code>. In that case drawn data is lost. Also, some window manager
|
||
configurations places the second window on top of the first and again drawn
|
||
data will be lost. By default, windows are placed next to the other in the
|
||
top left corner of the screen.</li>
|
||
<li>Zooming is not possible.</li>
|
||
<li>Eats LOTS of memory on BIG pictures. Also lots of CPU resources. Under mode
|
||
0, the boundary condition is not checked properly. The condition <code>|Z| >= 2.0</code>
|
||
should be checked exactly (by comparing <code>x*x+y*y</code> with <code>2*2</code>), or else artifacts
|
||
are introduced. The result of this error is a “bubbly” appearance (at least in
|
||
mono).</li>
|
||
</ul>
|
||
<!--
|
||
|
||
Copyright © 1984-2024 by Landon Curt Noll. All Rights Reserved.
|
||
|
||
You are free to share and adapt this file under the terms of this license:
|
||
|
||
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
|
||
|
||
For more information, see:
|
||
|
||
https://creativecommons.org/licenses/by-sa/4.0/
|
||
|
||
-->
|
||
<!-- AFTER: last line of markdown file: 1994/tvr/README.md -->
|
||
|
||
<!-- END: this line ends content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
|
||
<!-- START: this line starts content for HTML phase 22 by: bin/output-index-inventory.sh via bin/md2html.sh -->
|
||
|
||
<!-- START: this line starts content generated by: bin/output-index-inventory.sh -->
|
||
|
||
<div id="inventory">
|
||
<h1 id="inventory-for-1994tvr">Inventory for 1994/tvr</h1>
|
||
</div>
|
||
<h2 id="primary-files">Primary files</h2>
|
||
<ul>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/tvr.c">tvr.c</a> - entry source code</li>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/Makefile">Makefile</a> - entry Makefile</li>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/tvr.alt.c">tvr.alt.c</a> - less obfuscated source code</li>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/tvr.orig.c">tvr.orig.c</a> - original source code</li>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/try.alt.bw.sh">try.alt.bw.sh</a> - script to try alternate code in black and white mode</li>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/try.alt.color.sh">try.alt.color.sh</a> - script to try alternate code in colour mode</li>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/try.bw.sh">try.bw.sh</a> - script to try in black and white mode</li>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/try.color.sh">try.color.sh</a> - script to try in colour mode</li>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/tvr.bw">tvr.bw</a> - data file for black and white output</li>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/tvr.color">tvr.color</a> - RGB values</li>
|
||
</ul>
|
||
<h2 id="secondary-files">Secondary files</h2>
|
||
<ul>
|
||
<li><a href="1994_tvr.tar.bz2">1994_tvr.tar.bz2</a> - download entry tarball</li>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/README.md">README.md</a> - markdown source for this web page</li>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/.entry.json">.entry.json</a> - entry summary and manifest in JSON</li>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/.gitignore">.gitignore</a> - list of files that should not be committed under git</li>
|
||
<li><a href="https://github.com/ioccc-src/winner/blob/master/1994/tvr/.path">.path</a> - directory path from top level directory</li>
|
||
<li><a href="index.html">index.html</a> - this web page</li>
|
||
</ul>
|
||
<hr style="width:10%;text-align:left;margin-left:0">
|
||
<h4>
|
||
Jump to: <a href="#">top</a>
|
||
</h4>
|
||
|
||
<!-- END: next line ends content generated by: bin/output-index-inventory.sh -->
|
||
|
||
<!-- END: this line ends content for HTML phase 22 by: bin/output-index-inventory.sh via bin/md2html.sh -->
|
||
<!-- START: this line starts content from: inc/after-content.default.html -->
|
||
|
||
</div>
|
||
|
||
<!-- END: this line ends content from: inc/after-content.default.html -->
|
||
<!-- START: this line starts content from: inc/footer.inventory.html -->
|
||
|
||
<!--
|
||
|
||
Copyright © 1984-2025 by Landon Curt Noll. All Rights Reserved.
|
||
|
||
You are free to share and adapt this file under the terms of this license:
|
||
|
||
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
|
||
|
||
For more information, see:
|
||
|
||
https://creativecommons.org/licenses/by-sa/4.0/
|
||
|
||
-->
|
||
|
||
<div class="footer">
|
||
|
||
<div id="copyright"><h3>Copyright © 1984-2025 by Landon Curt Noll:
|
||
<a href="https://creativecommons.org/faq/#what-does-some-rights-reserved-mean"
|
||
target="_blank"
|
||
rel="license noopener noreferrer">Some Rights Reserved</a></h3>
|
||
<p>
|
||
This work is <b>licensed by Landon Curt Noll</b> under
|
||
<b><a href="https://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1"
|
||
target="_blank"
|
||
rel="license noopener noreferrer"
|
||
style="display:inline-block;">CC BY-SA 4.0</a></b>.
|
||
<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
||
src="../../png/cc.png"
|
||
alt="cc inside circle symbol">
|
||
<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
||
src="../../png/by.png"
|
||
alt="person inside circle symbol">
|
||
<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
||
src="../../png/sa.png"
|
||
alt="arrow looping back on itself inside circle symbol"><br>
|
||
You should <b>carefully review</b> the
|
||
<b><a href="https://creativecommons.org/licenses/by-sa/4.0/legalcode.en"
|
||
target="_blank"
|
||
rel="license noopener noreferrer">CC BY-SA 4.0 LEGAL CODE</a></b>
|
||
before using the licensed material.<br>
|
||
You may wish to review the
|
||
<b><a href="../../license.html"
|
||
target="_blank"
|
||
rel="license noopener noreferrer">highlights of some of the key features and terms</a></b>
|
||
of <b>CC BY-SA 4.0</b>.<br>
|
||
</p>
|
||
</div>
|
||
|
||
<div id="coda"><h3>Coda</h3>
|
||
<p>
|
||
<a href="https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.ioccc.org%2F1994%2Ftvr%2Findex.html" rel="nofollow">Nu HTML check this web page</a><br>
|
||
<a href="#top">Jump to top</a> <a href="#content">Jump to Content</a> <a href="#inventory">Jump to Inventory</a><br>
|
||
</p>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<!-- END: this line ends content from: inc/footer.inventory.html -->
|
||
<!-- START: this line starts content from: inc/bottom.default.html -->
|
||
|
||
</body>
|
||
</html>
|
||
|
||
<!-- END: this line ends content from: inc/bottom.default.html -->
|