This is one of those questions like "I'm new to games coding and want to write a MMORPG......"
The simple answer is "ARE YOU MAD?",
Writing a graphics engine from scratch is a hell of a lot of work, even for someone who knows exactly what they are doing. For a beginner, it's a massive undertaking.
If you want to do it as a learning exercise, fine go ahead. You will learn a hell of a lot. You will need a couple of years locked in your bedroom eating flat food, but if you survive it, you will be a useful coder.