Draft:Code of Rainbow

or multiple published secondary sources that:

Draft:Code of Rainbow

Code of Rainbow

infobox

Code of Rainbow
Original title Code of Rainbow
Author Weiqi Wang, D.Phil.
Genre Epic fantasy, Young adult (YA), Science fantasy
Created by Weiqi Wang
Original language English
Publisher Self-published via Amazon KDP
Published 2019 – present
No. of books 3 published (at least 7 planned)
First published Soaring Flame and the Dragon-transcending Magimal (2019)
Latest published Legends of Azure and the Masked Planet (August 7, 2019)
Core themes Integration of magic and science, growth and responsibility, species equality, environmental protection, anti-animal cruelty
Adaptations Mobile video game (in development), art book (planned)
ISBNs 9781726214803 (Book 1)

9781986623780 (Book 2)

9781075509322 (Book 3)

Website https://www.codeofrainbow.com

Overview

Code of Rainbow is an epic fantasy book series written by Chinese-born scientist and author Weiqi Wang, D.Phil. It introduces the "Sci-M-Fi" (Science-Magic-Fiction) literary genre, which proposes that magic can be explained by real-world physical scientific theories, enabling a seamless transition from fantasy to hard science fiction throughout the series.

As of 2019, three books have been released, with at least seven books planned in total:

  1. Soaring Flame and the Dragon-transcending Magimal (2016)[1]
  2. Ancient Barons and the Returned Assassin (2018)[2]
  3. Legends of Azure and the Masked Planet (August 7, 2019, 283 pages, paperback and ebook formats)[3]

The series' central thesis is that "magic is the uncharted territory of science". It also incorporates real-world social issues such as animal welfare, social justice, and peacekeeping. Suitable for all ages, the first book reached #1 on Amazon's global Children's Ebook chart, #2 on the global Young Adult Ebook chart, and #4 on the global Fantasy Ebook chart, receiving hundreds of reader reviews.

Background

Weiqi Wang earned his D.Phil. (Doctor of Philosophy) from the University of Oxford and later worked as a bioinformatics scientist at Stanford University, contributing to multiple projects funded by the U.S. National Institutes of Health (NIH). He also served as a postdoctoral fellow at Stanford University School of Medicine and is engaged in big data research in human immunology.[4]

He began writing the Code of Rainbow series during his doctoral studies at Oxford, when self-publishing was not yet widely accessible. After moving to the United States and starting a family in 2016, his unborn daughter inspired him to revisit and complete the unfinished manuscript. He self-published the first book via Amazon Kindle Direct Publishing (KDP) in 2019, maintaining a schedule of one book per year[4]

Critical Reception & Honors

  • 2018: Featured as the inner cover advertisement of the 76th Worldcon (World Science Fiction Convention) souvenir book[5]
  • Edited by Bonnie Karrin, an Emmy Award-winning editor who volunteered for the project[6]
  • Received reviews from:
    • Midwest Book Review: "An impressively original and thoroughly entertaining read from cover to cover"[7]
    • Red Headed Book Lover: "A dramatic, thrilling and exciting novel that will keep readers entertained, captivated and engrossed from the very first page"[8]
    • Broadway World: "The author continues to build the bond between science and magical elements to use proven, physical data to help us answer the unexplainable and impossible"[9]

Spoiler Warning

⚠️ Spoiler alert: All content wrapped in || || contains plot and setting spoilers for the first three books of Code of Rainbow. Proceed with caution if you have not read the series.

Worldbuilding

Core Philosophy & Magic System

The world of Code of Rainbow is built on seven elemental magic lineages, each represented by a color:

  • Fire (red), Water (blue), Wind (gray), Earth (yellow), Light (white), Darkness (black), Lightning (purple)

More advanced magic types include Life magic (green) and Death magic (brown), with additional types to be revealed in later books.

A defining feature of the magic system is that a wizard's power grows through understanding the Essence of Magic Elements—a process analogous to scientific advancement. The essences are categorized into three types:

  1. Substance: Elements with tangible physical properties (Earth, Wind, Water)
  2. Energy: Elements involving force and transformation (Fire)
  3. Law: Abstract elements governing fundamental universal rules

Mastery of an element's essence is required to reach the Master level of magical power.

History & Geography

The story takes place on a planet with six continents. In ancient times, dragons ruled the world and enslaved all other races. Approximately 3,000 years ago, the legendary wizard Spanflow Libral led the human revolution, defeated the dragon armies, and forced the entire dragon species to migrate permanently to the Holiness Continent (an event known as the Grand Migration).

Libral founded the Cylone Calendar (CC) and the Sunrise Alliance to maintain peace and train future wizards, ushering in the era of human civilization.

The six continents are:

  1. Thundeross Continent: Dominated by humans; home to the Arkwald Empire and the Institute of Libral
  2. Snowhill Continent: Home to the Astandos Empire; cold climate
  3. Knighton Continent: Home to the Moniton Empire
  4. Rainbow Continent: Limited information revealed
  5. Holiness Continent: Dragon reservation; off-limits to humans
  6. Allsouls Continent: Destroyed during the human-dragon war; now submerged

The Azure Ocean connects the continents and hides secrets related to the mythical "Planet of Halfgods".

Power Levels

Magical power is ranked from lowest to highest:

  1. Novice: Grades 1–3
  2. Adept: Grades 4–6 (maximum grade at the Institute of Libral)
  3. Expert: Levels 7–9 (Level 9 = Professor level; first exposure to Elemental Essence)
  4. Master: Level 10 (achieved by mastering any one Elemental Essence)
  5. Baron: Magimal equivalent of a human Master
  6. Legendary Master: Far above ordinary Masters; one step below Halfgod
  7. Halfgod: The highest known power level; transcends human limitations[1]

Main Characters

  • Soarame: Protagonist. A young wizard at the Institute of Libral, abandoned as an infant and raised by his adoptive uncle Filton. Possesses the extremely rare Magic-magnetic Physique (making him a Magneer), which allows him to see and attract all magic elements. Specializes in Water magic. Brave and kind, he founded the "Resurgers" team for the Dragon & Empires magic sport.
  • Snower: Soarame's bonded magimal, appearing as a small cat. Has extraordinary powers including healing fatal injuries and teleportation. Shares an equal, non-coercive bond with Soarame.
  • Halgon: Soarame's roommate and close friend. Specializes in Earth and Darkness magic. Calm, analytical, and highly intelligent. || He is secretly a half-dragon, born to a human wizard mother and a dragon father, granting him immense innate power. ||
  • Scankeen / Mr. Swanflew: Soarame's first magic teacher. A Legendary Master wizard and board member of the Sunrise Alliance. Left Soarame at the Institute to undertake a classified mission.
  • Max: Primary antagonist of Book 1. Owner of the MagiMax magic shop, an Expert-level Fire wizard. Possesses the Godmade magigear Mercy of the Demiurge, which grants near-invulnerability.
  • ||Naclad: Primary antagonist of Books 2 and 3. Scankeen's former disciple, a Master-level wizard and also a Magneer. Ambitious and ruthless, he seeks to attain the power of a Halfgod.|| [1][2][3]

Official website: Young Adult Fantasy Books | Codeofrainbow

ManyBooks author profile: Weiqi Wang - Bridging Magic Fantasy with Sci-Fi | ManyBooks

Amazon series page:Code of Rainbow (3 書籍系列) Kindle 版本

Goodreads series page: Code of Rainbow Series by Weiqi Wang

  1. ^ a b c Wang, Weiqi (2016). Soaring Flame and the Dragon-transcending Magimal (2nd ed.). Amazon Kindle Direct Publishing. ISBN 9781726214803.
  2. ^ a b Wang, Weiqi (2018). Ancient Barons and the Returned Assassin. Amazon Kindle Direct Publishing. ISBN 9781986623780.
  3. ^ a b Wang, Weiqi (2019). Legends of Azure and the Masked Planet. Amazon Kindle Direct Publishing. ISBN 9781075509322.
  4. ^ a b "Amazon.com: Weiqi Wang". Amazon. 2026.
  5. ^ "Worldcon History". Worldcon. 2016-01-24. Retrieved 2026-04-15.
  6. ^ "Amazon.com: Codew of Rainbow". Amazon. 2026-04-15.
  7. ^ "MBR: Children's Bookwatch, November 2019". www.midwestbookreview.com. Retrieved 2026-04-15.
  8. ^ Aimee (2019-02-17). "Code of Rainbow: Ancient Barons and the Returned Assassin, Weiqi Wang". RED HEADED BOOK LOVER. Retrieved 2026-04-15.
  9. ^ Cristi, A. A. (1970-01-01). "New Book, CODE OF RAINBOW: LEGENDS OF AZURE AND THE MASKED PLANET Out Now". BroadwayWorld.com. Retrieved 2026-04-15.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.