1
0
Fork
You've already forked planet
0
  • C 100%
Fawn 4124e9c054
Allocate contiguous memory blocks, format stuff
- Instead of double indirection, allocate memory for a 2-dimensional
 array directly, and cast the pointer type when used to get proper
 indexing maths
- Use bool for more flags I previously missed
- Replace fprintf() calls without format specifiers with fputs() or
 putc()
- Format everything that was touched by the above (and more that wasn't)
2026年06月24日 23:24:05 -06:00
.clangd Remove macOS 9 support, clean up _WIN32 checks 2026年06月18日 01:51:25 -06:00
.gitignore Update function declarations to C99 style 2026年06月18日 00:41:45 -06:00
2col.col 2024年08月14日 revision 2024年08月14日 09:44:00 +02:00
Bathymetric.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
Blackbody.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
burrows.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
burrowsB.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
Colors.rgb 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
default.bio 2024年08月14日 revision 2024年08月14日 09:44:00 +02:00
default.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
defaultB.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
earth.map 2024年08月14日 revision 2024年08月14日 09:44:00 +02:00
Grey.rgb 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
greyscale.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
Jons.rgb 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
Lefebvre.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
Lefebvre2.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
LICENSE.txt Update function declarations to C99 style 2026年06月18日 00:41:45 -06:00
light.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
Manual.pdf 2024年08月14日 revision 2024年08月14日 09:44:00 +02:00
mars.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
Mars.rgb 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
math.h Clean up error handling 2026年06月19日 13:35:39 -06:00
Olsson.col 2024年08月14日 revision 2024年08月14日 09:44:00 +02:00
Olsson2.col 2024年08月14日 revision 2024年08月14日 09:44:00 +02:00
OlssonLight.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
planet.c Allocate contiguous memory blocks, format stuff 2026年06月24日 23:24:05 -06:00
README.md Update function declarations to C99 style 2026年06月18日 00:41:45 -06:00
white.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
White.rgb 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
wood.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
yellow.col 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00
Yellow.rgb 2014年11月12日 revision 2014年11月12日 04:21:00 +02:00

🌏 planet

A world map generating program, originally written by Torben Ægidius Mogensen. See the homepage and the interactive web version.

Compiling

cc -lm -O2 -o planet planet.c

License

Planet is available under a copyleft license (see LICENSE.txt). The license is non-standard and may change in future versions at the whim of the original author.

Acknowledgements

Torben thanks Jim Burrows for contributions to the code.