17 lines
398 B
Python
17 lines
398 B
Python
import cairo
|
|
import math
|
|
from .page import Page
|
|
|
|
class ApparentWind(Page):
|
|
|
|
def __init__(self, pageno, cfg, boatdata):
|
|
super().__init__(pageno, cfg, boatdata)
|
|
|
|
def draw(self, ctx):
|
|
# Name
|
|
ctx.select_font_face("Ubuntu", cairo.FontSlant.NORMAL, cairo.FontWeight.BOLD)
|
|
ctx.set_font_size(60)
|
|
ctx.move_to(20, 100)
|
|
ctx.show_text("Apparent Wind")
|
|
|