Everything you will need to know about how to make your speedometer is going to be in the code located in this repository.
It produces the same knob seen in this video.
The video is of a different graphics library called LVGL which is made for microcontrollers but the results are the same. You have to excuse the blurriness in the video as that is being caused by the screen capture program.