INNER CODE UNIT · Python

full_size

pairinteraction/pairinteraction · src/pairinteraction_gui/app.py:83

        full_size = logo_size + 2 * border
        pixmap = QPixmap(full_size, full_size)
        pixmap.fill(QColor("#28354e"))  # "Dark" theme color
        painter = QPainter(pixmap)
        painter.translate(border, border)
        _draw_logo(painter, logo_size)
        painter.end()
        self.setPixmap(pixmap)


def _draw_logo(painter: QPainter, size: int) -> None:
    """Draw the PairInteraction logo using QPainter, ported from data/icon.tex (TikZ source)."""
    s = size / 19.0

    def tx(x: float) -> float:
        return (x + 2.0) * s

    def ty(y: float) -> float:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…